<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:PageMessageBoxExt}">
        <Setter Property="SizeToContent" Value="WidthAndHeight" />
        <Setter Property="Height" Value="50" />
        <Setter Property="WindowStyle" Value="None" />
        <Setter Property="ResizeMode" Value="NoResize" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type TradeControl:PageMessageBoxExt}">
                    <Presentation:PageContainer>
                        <Presentation:TradePage x:Name="rootTradePage" dhcc:FocusManager.EnableFocusControl="{TemplateBinding IsEnableFocusControl}">
                            <Border Width="{TemplateBinding Width}"
                                    Height="50"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"
                                    Background="White"
                                    BorderBrush="#9ACAFF"
                                    BorderThickness="1.5">
                                <Grid>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="5" />
                                        <RowDefinition Height="*" />
                                    </Grid.RowDefinitions>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="*" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Border Grid.Row="0"
                                            Grid.ColumnSpan="2"
                                            Background="SkyBlue" />
                                    <TextBlock Name="TxtMessage"
                                               Grid.Row="1"
                                               Grid.Column="0"
                                               Margin="20,0,10,0"
                                               HorizontalAlignment="Left"
                                               VerticalAlignment="Center"
                                               TextWrapping="Wrap" />
                                    <StackPanel Name="ButtonGroup"
                                                Grid.Row="1"
                                                Grid.Column="1"
                                                HorizontalAlignment="Right"
                                                Orientation="Horizontal">

                                        <ContentPresenter ContentSource="Content" />
                                    </StackPanel>
                                </Grid>
                            </Border>
                        </Presentation:TradePage>
                    </Presentation:PageContainer>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>