<ResourceDictionary  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:dhcc="http://www.dhcc.com.cn">

    <Style TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">
        <Setter Property="dhcc:FocusManager.FocusHandled" Value="{x:Static dhcc:ButtonHelper.ButtonFocusHandled}" />
        <Setter Property="dhcc:FocusManager.IsInternalKeyboardControlling" Value="True" />
        <Setter Property="dhcc:FocusManagerExt.IsFocusAdorner" Value="True" />
        <Setter Property="HorizontalAlignment" Value="{DynamicResource Button_Normal_HorizontalAlignment}" />
        <Setter Property="VerticalAlignment" Value="{DynamicResource Button_Normal_VerticalAlignment}" />
        <Setter Property="Margin" Value="{DynamicResource Button_Normal_Margin}" />
        <Setter Property="Height" Value="{DynamicResource Button_Normal_Height}" />
        <Setter Property="Width" Value="{DynamicResource Button_Normal_Width}" />
        <Setter Property="SnapsToDevicePixels" Value="true"/>
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Background" Value="{DynamicResource Button_Normal_Background}"/>
        <Setter Property="BorderBrush" Value="{DynamicResource Button_Normal_BorderBrush}"/>
        <Setter Property="BorderThickness" Value="{DynamicResource Button_Normal_BorderThickness}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Border x:Name="Border" 
                            CornerRadius="{DynamicResource Button_Normal_CornerRadius}"  
                            BorderThickness="{TemplateBinding BorderThickness}" 
                            Background="{TemplateBinding  Background}" 
                            BorderBrush="{TemplateBinding BorderBrush}">
                        <StackPanel HorizontalAlignment="Center" Orientation="Horizontal" VerticalAlignment="Center">
                            <ContentPresenter RecognizesAccessKey="True"/>
                        </StackPanel>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="true">
                            <Setter  Property="Background" Value="{DynamicResource Button_MouseOver_Background}" />
                            <Setter Property="BorderBrush" Value="{DynamicResource Button_MouseOver_BorderBrush}" />
                            <Setter  Property="BorderThickness" Value="{DynamicResource Button_MouseOver_BorderThickness}" />
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter  Property="Background" Value="{DynamicResource Button_Enable_Background}" />
                            <Setter  Property="BorderBrush" Value="{DynamicResource Button_Enable_BorderBrush}" />
                            <Setter  Property="BorderThickness" Value="{DynamicResource Button_Enable_BorderThickness}" />
                            <Setter Property="Foreground" Value="{DynamicResource Button_Enable_Foreground}"/>
                        </Trigger>
                     
                        <Trigger Property="IsPressed" Value="true">
                            <Setter Property="Background" Value="{DynamicResource Button_Pressed_Background}" />
                            <Setter Property="BorderBrush" Value="{DynamicResource Button_Pressed_BorderBrush}" />
                            <Setter Property="BorderThickness" Value="{DynamicResource Button_Pressed_BorderThickness}" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
</ResourceDictionary>