| | |
| | | </Setter.Value> |
| | | </Setter> |
| | | </Style> |
| | | |
| | | <Style x:Key="RButton" TargetType="{x:Type Button}" > |
| | | <Style.Resources> |
| | | <SolidColorBrush x:Key="TextColor">RED</SolidColorBrush> |
| | | </Style.Resources> |
| | | <Setter Property="Template"> |
| | | <Setter.Value> |
| | | <ControlTemplate TargetType="{x:Type ButtonBase}"> |
| | | <ContentPresenter x:Name="buttonContent" TextBlock.FontSize="{TemplateBinding FontSize}" |
| | | TextBlock.FontFamily="{StaticResource iconfont}" |
| | | TextBlock.Foreground="{StaticResource TextColor}" |
| | | Margin="0,0,5,0" |
| | | VerticalAlignment="Center" |
| | | HorizontalAlignment="Center" |
| | | Content="{TemplateBinding Content}"/> |
| | | <ControlTemplate.Triggers> |
| | | <Trigger Property="IsMouseOver" Value="True"> |
| | | <Setter TargetName="buttonContent" Property="TextBlock.Foreground" Value="Purple"/> |
| | | </Trigger> |
| | | </ControlTemplate.Triggers> |
| | | </ControlTemplate> |
| | | </Setter.Value> |
| | | </Setter> |
| | | </Style> |
| | | </ResourceDictionary> |