| <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 x:Key="PlayButton" TargetType="{x:Type Button}" BasedOn="{StaticResource BaseStyle}"> |
| <Style x:Key="PlayButton" TargetType="{x:Type Button}" BasedOn="{StaticResource BaseStyle}"> |
| <Setter Property="Background" Value="{DynamicResource GlyphBrush}" /> |
| <Setter Property="Background" Value="{DynamicResource GlyphBrush}" /> |
| <Setter Property="Foreground" Value="{DynamicResource TextBrushDark}" /> |
| <Setter Property="Foreground" Value="{DynamicResource TextBrushDark}" /> |
| <Setter Property="BorderBrush" Value="{DynamicResource NormalBorderBrush}" /> |
| <Setter Property="BorderBrush" Value="{DynamicResource NormalBorderBrush}" /> |
| <Setter Property="BorderThickness" Value="{DynamicResource ControlBorderThickness}" /> |
| <Setter Property="BorderThickness" Value="{DynamicResource ControlBorderThickness}" /> |
| <Setter Property="Padding" Value="10,5,10,5" /> |
| <Setter Property="Padding" Value="10,5,10,5" /> |
| <Setter Property="Template"> |
| <Setter Property="Template"> |
| <Setter.Value> |
| <Setter.Value> |
| <ControlTemplate TargetType="{x:Type Button}"> |
| <ControlTemplate TargetType="{x:Type Button}"> |
| <Grid x:Name="Grid"> |
| <Grid x:Name="Grid"> |
| <Border x:Name="DefaultBorder" BorderBrush="{TemplateBinding BorderBrush}" |
| <Border x:Name="DefaultBorder" BorderBrush="{TemplateBinding BorderBrush}" |
| BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" |
| BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" |
| Opacity="1" CornerRadius="{DynamicResource ControlCornerRadius}"/> |
| Opacity="1" CornerRadius="{DynamicResource ControlCornerRadius}"/> |
| <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" RecognizesAccessKey="True" /> |
| <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" RecognizesAccessKey="True" /> |
| </Grid> |
| </Grid> |
| <ControlTemplate.Triggers> |
| <ControlTemplate.Triggers> |
| <Trigger Property="IsEnabled" Value="True" /> |
| <Trigger Property="IsEnabled" Value="True" /> |
| <Trigger Property="IsEnabled" Value="False"> |
| <Trigger Property="IsEnabled" Value="False"> |
. | <Setter Property="Background" Value="{DynamicResource DisabledBackgroundBrush}" TargetName="DefaultBorder" /> |
| |
| <Setter Property="Opacity" TargetName="Grid" Value="0.5" /> |
| <Setter Property="Opacity" TargetName="Grid" Value="0.5" /> |
| </Trigger> |
| </Trigger> |
| </ControlTemplate.Triggers> |
| </ControlTemplate.Triggers> |
| </ControlTemplate> |
| </ControlTemplate> |
| </Setter.Value> |
| </Setter.Value> |
| </Setter> |
| </Setter> |
| <Style.Triggers> |
| <Style.Triggers> |
| <Trigger Property="IsMouseOver" Value="true"> |
| <Trigger Property="IsMouseOver" Value="true"> |
| <Setter Property="Foreground" Value="{DynamicResource TextBrush}" /> |
| <Setter Property="Foreground" Value="{DynamicResource TextBrush}" /> |
| <Setter Property="BorderBrush" Value="{DynamicResource TextBrush}" /> |
| <Setter Property="BorderBrush" Value="{DynamicResource TextBrush}" /> |
| </Trigger> |
| </Trigger> |
| </Style.Triggers> |
| </Style.Triggers> |
| </Style> |
| </Style> |
| </ResourceDictionary> |
| </ResourceDictionary> |