<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:system="clr-namespace:System;assembly=mscorlib">
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="pack://application:,,,/BPA.UIControl;component/Themes/Resources/DefaultColor.xaml" />
        <ResourceDictionary Source="pack://application:,,,/BPA.UIControl;component/Themes/Resources/Converter.xaml" />
        <ResourceDictionary Source="pack://application:,,,/BPA.UIControl;component/Themes/Resources/I18N/zh-CN.xaml" />
    </ResourceDictionary.MergedDictionaries>

    <!--  BorderThickness  -->
    <Thickness x:Key="DefaultBorderThickness">1</Thickness>

    <!--  Opacity  -->
    <system:Double x:Key="UnenableOpcity">0.5</system:Double>

    <!--  Effect  -->
    <DropShadowEffect x:Key="AllDirectionEffect"
                      BlurRadius="5"
                      Direction="0"
                      Opacity="0.7"
                      ShadowDepth="0"
                      Color="{StaticResource LightEffectColor}" />
    <DropShadowEffect x:Key="AllDirectionEffect2"
                      BlurRadius="7"
                      Direction="0"
                      Opacity="0.7"
                      ShadowDepth="0"
                      Color="{StaticResource LightEffectColor}" />
    <DropShadowEffect x:Key="AllDirectionEffect3"
                      BlurRadius="9"
                      Direction="0"
                      Opacity="0.7"
                      ShadowDepth="0"
                      Color="{StaticResource LightEffectColor}" />
    <DropShadowEffect x:Key="AllDirectionEffect4"
                      BlurRadius="11"
                      Direction="0"
                      Opacity="0.75"
                      ShadowDepth="0"
                      Color="{StaticResource LightEffectColor}" />
    <DropShadowEffect x:Key="AllDirectionEffect5"
                      BlurRadius="13"
                      Direction="0"
                      Opacity="0.8"
                      ShadowDepth="0"
                      Color="{StaticResource LightEffectColor}" />

    <DropShadowEffect x:Key="RightTopEffect"
                      BlurRadius="6"
                      Direction="45"
                      Opacity="0.7"
                      ShadowDepth="1.5"
                      Color="{StaticResource LightEffectColor}" />
    <DropShadowEffect x:Key="LeftTopEffect"
                      BlurRadius="6"
                      Direction="135"
                      Opacity="0.7"
                      ShadowDepth="1.5"
                      Color="{StaticResource LightEffectColor}" />
    <DropShadowEffect x:Key="RightBottomEffect"
                      BlurRadius="6"
                      Direction="-45"
                      Opacity="0.7"
                      ShadowDepth="1.5"
                      Color="{StaticResource LightEffectColor}" />
    <DropShadowEffect x:Key="LeftBottomEffect"
                      BlurRadius="6"
                      Direction="-135"
                      Opacity="0.7"
                      ShadowDepth="1.5"
                      Color="{StaticResource LightEffectColor}" />
    <DropShadowEffect x:Key="TopEffect"
                      BlurRadius="6"
                      Direction="90"
                      Opacity="0.7"
                      ShadowDepth="2"
                      Color="{StaticResource LightEffectColor}" />
    <DropShadowEffect x:Key="BottomEffect"
                      BlurRadius="6"
                      Direction="-90"
                      Opacity="0.7"
                      ShadowDepth="2"
                      Color="{StaticResource LightEffectColor}" />
    <DropShadowEffect x:Key="RightEffect"
                      BlurRadius="6"
                      Direction="0"
                      Opacity="0.7"
                      ShadowDepth="2"
                      Color="{StaticResource LightEffectColor}" />
    <DropShadowEffect x:Key="LeftEffect"
                      BlurRadius="6"
                      Direction="180"
                      Opacity="0.7"
                      ShadowDepth="2"
                      Color="{StaticResource LightEffectColor}" />

    <!--  CornerRadius  -->
    <CornerRadius x:Key="AllControlCornerRadius">3</CornerRadius>
    <CornerRadius x:Key="LeftControlCornerRadius">3 0 0 3</CornerRadius>
    <CornerRadius x:Key="RightControlCornerRadius">0 3 3 0</CornerRadius>
    <CornerRadius x:Key="TopControlCornerRadius">3 3 0 0</CornerRadius>
    <CornerRadius x:Key="BottomControlCornerRadius">0 0 3 3</CornerRadius>

    <CornerRadius x:Key="AllContainerCornerRadius">5</CornerRadius>
    <CornerRadius x:Key="LeftContainerCornerRadius">5 0 0 5</CornerRadius>
    <CornerRadius x:Key="RightContainerCornerRadius">0 5 5 0</CornerRadius>
    <CornerRadius x:Key="TopContainerCornerRadius">5 5 0 0</CornerRadius>
    <CornerRadius x:Key="BottomContainerCornerRadius">0 0 5 5</CornerRadius>

    <Style x:Key="FocusVisual">
        <Setter Property="Control.Template">
            <Setter.Value>
                <ControlTemplate>
                    <Rectangle Margin="2"
                               SnapsToDevicePixels="true"
                               Stroke="{DynamicResource DefaultForeground}"
                               StrokeDashArray="1 2"
                               StrokeThickness="1" />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>