<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:dhcc="http://www.dhcc.com.cn"
                    xmlns:Presentation="clr-namespace:Platform.Presentation.PageFunctions;assembly=Platform.Presentation"
                    xmlns:TradeControl="clr-namespace:Platform.Controls.TradeExtension">
    <Style TargetType="{x:Type TradeControl:PageDialogBase}">
        <Setter Property="SnapsToDevicePixels" Value="true" />
        <Setter Property="Icon" Value="/Platform.Controls;component/Resource/MainICO.png" />
        <Setter Property="SizeToContent" Value="WidthAndHeight" />
        <Setter Property="MinHeight" Value="150" />
        <Setter Property="MinWidth" Value="200" />
        <Setter Property="MaxHeight" Value="600" />
        <Setter Property="MaxWidth" Value="800" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type TradeControl:PageDialogBase}">
                    <Presentation:PageContainer>
                        <Presentation:TradePage x:Name="rootTradePage" dhcc:FocusManager.EnableFocusControl="{TemplateBinding IsEnableFocusControl}">
                            <Border Background="White">
                                <ContentPresenter ContentSource="Content" />
                            </Border>
                        </Presentation:TradePage>
                    </Presentation:PageContainer>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>