WPF – Base Button

<SolidColorBrush x:Key=“DAE_BaseButtonBackgroundColor“ Color=“LightGray“ />
<SolidColorBrush x:Key=“DAE_BaseButtonForegroundColor“ Color=“White“ />
<SolidColorBrush x:Key=“DAE_BaseButtonTapBackColor“ Color=“White“/>
<SolidColorBrush x:Key=“DAE_BaseButtonTapForColor“ Color=“Black“/>
<Style x:Key=“DAE_BaseButton“ TargetType=“{x:Type Button}“ BasedOn=“{StaticResource {x:Static ToolBar.ButtonStyleKey}}“>
<Setter Property=“BorderBrush“ Value=“Transparent“/>
<Setter Property=“BorderThickness“ Value=“0″/>
<Setter Property=“Background“ Value=“{StaticResource DAE_BaseButtonBackgroundColor}“/>
<Setter Property=“HorizontalContentAlignment“ Value=“Center“/>
<Setter Property=“VerticalContentAlignment“ Value=“Center“/>
<Setter Property=“VerticalAlignment“ Value=“Stretch“/>
<Setter Property=“HorizontalAlignment“  Value=“Stretch“/>
<Setter Property=“Padding“ Value=“0″/>
<Setter Property=“Margin“ Value=“{StaticResource StandardMargin}“/>
<Setter Property=“FontWeight“ Value=“SemiBold“/>
<Setter Property=“FontSize“ Value=“{StaticResource StandardFontSizeMiddle}“/>
<Setter Property=“Template“>
<Setter.Value>
<ControlTemplate TargetType=“{x:Type Button}“>
<Border x:Name=“border“ TextBlock.Foreground=“{TemplateBinding Foreground}“ CornerRadius=“{DynamicResource StandardCornerRadius}“ Background=“{TemplateBinding Background}“ BorderBrush=“{TemplateBinding BorderBrush}“ BorderThickness=“{TemplateBinding BorderThickness}“ OpacityMask=“{TemplateBinding OpacityMask}“ >
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name=“CommonStates“>
<VisualState x:Name=“Normal“/>
<VisualState x:Name=“MouseOver“/>
<VisualState x:Name=“Pressed“>
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty=“(Panel.Background)“ Storyboard.TargetName=“border“>
<DiscreteObjectKeyFrame KeyTime=“0″ Value=“{StaticResource DAE_BaseButtonTapBackColor}“/>
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty=“(TextBlock.Foreground)“ Storyboard.TargetName=“border“>
<DiscreteObjectKeyFrame KeyTime=“0″ Value=“{StaticResource DAE_BaseButtonTapForColor}“/>
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
<VisualState x:Name=“Disabled“/>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<ContentPresenter x:Name=“contentPresenter“ ContentTemplate=“{TemplateBinding ContentTemplate}“ Content=“{TemplateBinding Content}“ HorizontalAlignment=“{TemplateBinding HorizontalContentAlignment}“ Margin=“{TemplateBinding Padding}“ VerticalAlignment=“{TemplateBinding VerticalContentAlignment}“/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>