| <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
| |
| |
| <Style TargetType="Button"> |
| <Style TargetType="Button"> |
| <Setter Property="FocusVisualStyle" Value="{x:Null}" /> |
| <Setter Property="FocusVisualStyle" Value="{x:Null}" /> |
| <Setter Property="Foreground" Value="{DynamicResource TextBrush}" /> |
| <Setter Property="Foreground" Value="{DynamicResource TextBrush}" /> |
| <Setter Property="Background" Value="Transparent" /> |
| <Setter Property="Background" Value="Transparent" /> |
| <Setter Property="SnapsToDevicePixels" Value="True" /> |
| <Setter Property="SnapsToDevicePixels" Value="True" /> |
| <Setter Property="Padding" Value="12,5,12,5" /> |
| <Setter Property="Padding" Value="12,5,12,5" /> |
| <Setter Property="HorizontalContentAlignment" Value="Left" /> |
| <Setter Property="HorizontalContentAlignment" Value="Left" /> |
| <Setter Property="VerticalContentAlignment" Value="Center" /> |
| <Setter Property="VerticalContentAlignment" Value="Center" /> |
| <Setter Property="BorderBrush" Value="{DynamicResource SelectionLightBrush}" /> |
| <Setter Property="BorderBrush" Value="{DynamicResource SelectionLightBrush}" /> |
| <Setter Property="BorderThickness" Value="0" /> |
| <Setter Property="BorderThickness" Value="0" /> |
| <Setter Property="Template"> |
| <Setter Property="Template"> |
| <Setter.Value> |
| <Setter.Value> |
| <ControlTemplate TargetType="Button"> |
| <ControlTemplate TargetType="Button"> |
| <Grid Background="{TemplateBinding Background}"> |
| <Grid Background="{TemplateBinding Background}"> |
| <TextBlock Style="{DynamicResource TextBlockBaseStyle}" |
| <TextBlock Style="{DynamicResource TextBlockBaseStyle}" |
| Foreground="{TemplateBinding Foreground}" |
| Foreground="{TemplateBinding Foreground}" |
| HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
| HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
| VerticalAlignment="{TemplateBinding VerticalContentAlignment}" |
| VerticalAlignment="{TemplateBinding VerticalContentAlignment}" |
| Margin="{TemplateBinding Padding}"> |
| Margin="{TemplateBinding Padding}"> |
| <ContentPresenter /> |
| <ContentPresenter /> |
| </TextBlock> |
| </TextBlock> |
| |
| |
| <Border BorderThickness="{TemplateBinding BorderThickness}" |
| <Border BorderThickness="{TemplateBinding BorderThickness}" |
| BorderBrush="{TemplateBinding BorderBrush}" |
| BorderBrush="{TemplateBinding BorderBrush}" |
| x:Name="BorderStandard" /> |
| x:Name="BorderStandard" /> |
| |
| |
| <Border x:Name="BorderFocus" Margin="-3" |
| <Border x:Name="BorderFocus" Margin="-3" |
| SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" |
| SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" |
| BorderBrush="{DynamicResource SelectionBrush}" |
| BorderBrush="{DynamicResource SelectionBrush}" |
| BorderThickness="3" Visibility="Hidden" /> |
| BorderThickness="3" Visibility="Hidden" /> |
| </Grid> |
| </Grid> |
| <ControlTemplate.Triggers> |
| <ControlTemplate.Triggers> |
. | |
| <Trigger Property="IsEnabled" Value="False"> |
| |
| <Setter Property="Opacity" Value="0.5" /> |
| |
| </Trigger> |
| <Trigger Property="IsFocused" Value="True"> |
| <Trigger Property="IsFocused" Value="True"> |
| <Setter Property="Background" Value="{DynamicResource ControlBackgroundDarkBrush}" /> |
| <Setter Property="Background" Value="{DynamicResource ControlBackgroundDarkBrush}" /> |
| <Setter Property="Visibility" Value="Visible" TargetName="BorderFocus" /> |
| <Setter Property="Visibility" Value="Visible" TargetName="BorderFocus" /> |
| <Setter Property="Visibility" Value="Hidden" TargetName="BorderStandard" /> |
| <Setter Property="Visibility" Value="Hidden" TargetName="BorderStandard" /> |
| </Trigger> |
| </Trigger> |
| <Trigger Property="IsMouseOver" Value="True"> |
| <Trigger Property="IsMouseOver" Value="True"> |
| <Setter Property="Background" Value="{DynamicResource ControlBackgroundDarkBrush}" /> |
| <Setter Property="Background" Value="{DynamicResource ControlBackgroundDarkBrush}" /> |
| <Setter Property="Visibility" Value="Visible" TargetName="BorderFocus" /> |
| <Setter Property="Visibility" Value="Visible" TargetName="BorderFocus" /> |
| <Setter Property="Visibility" Value="Hidden" TargetName="BorderStandard" /> |
| <Setter Property="Visibility" Value="Hidden" TargetName="BorderStandard" /> |
| </Trigger> |
| </Trigger> |
| <Trigger Property="IsEnabled" Value="False"> |
| <Trigger Property="IsEnabled" Value="False"> |
| <Setter Property="Foreground" Value="{DynamicResource TextBrushDark}" /> |
| <Setter Property="Foreground" Value="{DynamicResource TextBrushDark}" /> |
| </Trigger> |
| </Trigger> |
| </ControlTemplate.Triggers> |
| </ControlTemplate.Triggers> |
| </ControlTemplate> |
| </ControlTemplate> |
| </Setter.Value> |
| </Setter.Value> |
| </Setter> |
| </Setter> |
| </Style> |
| </Style> |
| |
| |
| <Style TargetType="ButtonEx" BasedOn="{StaticResource {x:Type Button}}"> |
| <Style TargetType="ButtonEx" BasedOn="{StaticResource {x:Type Button}}"> |
| </Style> |
| </Style> |
| </ResourceDictionary> |
| </ResourceDictionary> |