1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
- <Style x:Key="ButtonStyle" TargetType="Button">
- <Setter Property="Background" Value="#DCDCDC"/>
- <Setter Property="BorderBrush" Value="#696969"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border CornerRadius="5" BorderThickness="1" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}">
- <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Content="{TemplateBinding Content}"/>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Background" Value="#ADD8E6"/>
- <Setter Property="BorderBrush" Value="#708090"/>
- <Setter Property="Cursor" Value="Hand"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- <Style x:Key="LabaelStyle" TargetType="Label">
- <Setter Property="FontFamily" Value="Arial"/>
- <Setter Property="FontSize" Value="23"/>
- <Setter Property="Foreground" Value="Black"/>
- </Style>
- <Style x:Key="ImageStyle" TargetType="Image">
- <Setter Property="Height" Value="22"/>
- <Setter Property="Width" Value="25"/>
- <Setter Property="Cursor" Value="Hand"/>
- </Style>
- <LinearGradientBrush x:Key="BackgroundStyle" EndPoint="0.5,1" StartPoint="0.5,0">
- <GradientStop Color="#FFF3F3F3" Offset="1"/>
- <GradientStop Color="#FF89D7DA" Offset="0"/>
- </LinearGradientBrush>
- <Style x:Key="TextBlockStyle" TargetType="TextBlock">
- <Setter Property="FontSize" Value="16"/>
- <Setter Property="TextAlignment" Value="Left"/>
- <Setter Property="HorizontalAlignment" Value="Left"/>
- <Setter Property="VerticalAlignment" Value="Top"/>
- </Style>
- <DataTemplate x:Key="DataTemplate">
- <TextBlock Text="{Binding BirstDate, StringFormat={}{0:dd\.}{0:MM\.}{0:yyyy}}" VerticalAlignment="Center" HorizontalAlignment="Left"/>
- </DataTemplate>
- <DataTemplate x:Key="EditingDataTemplate">
- <DatePicker SelectedDate="{Binding BirstDate, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
- </DataTemplate>
- <Style x:Key="errorStyle" TargetType="{x:Type TextBox}">
- <Setter Property="Padding" Value="-2"/>
- <Style.Triggers>
- <Trigger Property="Validation.HasError" Value="True">
- <Setter Property="Background" Value="Red"/>
- <Setter Property="BorderThickness" Value="1" />
- <Setter Property="ToolTip" Value="{Binding RelativeSource={RelativeSource Self}, Path=(Validation.Errors)[0].ErrorContent}"/>
- </Trigger>
- </Style.Triggers>
- </Style>
-
- </ResourceDictionary>
|