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

    <Style TargetType="{x:Type PasswordBox}"  BasedOn="{StaticResource {x:Type PasswordBox}}">
        <Setter Property="dhcc:FocusManager.FocusHandled" Value="{x:Static dhcc:PasswordBoxHelper.PasswordBoxFocusHandled}" />
        <Setter Property="dhcc:FocusManager.IsInternalKeyboardControlling" Value="True" />
        <Setter Property="dhcc:FocusManagerExt.IsFocusAdorner" Value="True" />
        <Setter Property="dhcc:PasswordBoxHelper.IsAutoSelectedAll" Value="True"/>
        <Setter Property="dhcc:FocusManagerExt.AssertNotEmpty" Value="True" />
        <Setter Property="dhcc:FocusManagerExt.ValidationField" Value="Password" />
        <Setter Property="dhcc:FocusManagerExt.FieldEmptyPolicies">
            <Setter.Value>
                <dhcc:FieldPolicyCollection>
                    <dhcc:ShowTipPolicy />                    
                </dhcc:FieldPolicyCollection>
            </Setter.Value>
        </Setter>
        <Setter Property="dhcc:FocusManagerExt.RegexValidateErrorPolicies">
            <Setter.Value>
                <dhcc:FieldPolicyCollection>
                    <dhcc:ShowTipPolicy/>                    
                </dhcc:FieldPolicyCollection>
            </Setter.Value>
        </Setter>
        <Setter Property="SnapsToDevicePixels" Value="true"/>
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="KeyboardNavigation.TabNavigation" Value="None"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="FontFamily" Value="Verdana"/>
        <Setter Property="PasswordChar" Value="{DynamicResource PasswordBox_Normal_PasswordChar}"/>
        <Setter Property="MinWidth" Value="120"/>
        <Setter Property="MinHeight" Value="20"/>
        <Setter Property="AllowDrop" Value="true"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type PasswordBox}">
                    <Border 
          Name="Border"
          CornerRadius="2" 
          Padding="2" 
          Background="{DynamicResource PasswordBox_Normal_Background}"
          BorderBrush="{DynamicResource TextBox_Normal_BorderBrush}"
          BorderThickness="{DynamicResource TextBox_Normal_BorderThickness}" >
                        <ScrollViewer x:Name="PART_ContentHost" />
                    </Border>
                    <ControlTemplate.Triggers>                        
                        <Trigger Property="IsMouseOver" Value="true">
                            <Setter TargetName="Border" Property="Background" Value="{DynamicResource PasswordBox_MouseOver_Background}"/>
                            <Setter TargetName="Border" Property="BorderBrush" Value="{DynamicResource PasswordBox_MouseOver_BorderBrush}" />
                            <Setter TargetName="Border" Property="BorderThickness" Value="{DynamicResource PasswordBox_MouseOver_BorderThickness}"/>
                        </Trigger>
                        <Trigger Property="dhcc:FocusManagerExt.AssertNotEmpty" Value="True">
                            <Setter TargetName="Border" Property="Background" Value="{DynamicResource TextBox_AssertNotEmpty_Background}" />
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter TargetName="Border" Property="Background" Value="{DynamicResource TextBox_Enable_Background}"/>
                            <Setter TargetName="Border" Property="BorderBrush" Value="{DynamicResource TextBox_Enable_BorderBrush}"/>
                            <Setter Property="Foreground" Value="{DynamicResource TextBox_Enable_Foreground}"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>