<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:ControlsHelper="clr-namespace:Platform.Controls.ControlsHelper"
                    xmlns:Presentation="clr-namespace:Platform.Presentation.PageFunctions;assembly=Platform.Presentation"
                    xmlns:TradeControl="clr-namespace:Platform.Controls.TradeExtension">
    <Style TargetType="{x:Type TradeControl:PageMessageBoxSimple}">
        <Setter Property="SizeToContent" Value="WidthAndHeight" />
        <Setter Property="WindowStyle" Value="None" />
        <Setter Property="ResizeMode" Value="NoResize" />
        <Setter Property="Background" Value="Transparent" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type TradeControl:PageMessageBoxSimple}">
                    <Presentation:PageContainer>
                        <Presentation:TradePage x:Name="rootTradePage" dhcc:FocusManager.EnableFocusControl="{TemplateBinding IsEnableFocusControl}">
                            <Grid x:Name="LayoutRoot" Width="{TemplateBinding Width}">
                                <Border x:Name="border"
                                        BorderBrush="#FF1D1D1D"
                                        BorderThickness="1,1,1,0.5"
                                        RenderTransformOrigin="0.5,0.5">
                                    <Border Margin="0"
                                            BorderBrush="#FF7E7E7E"
                                            BorderThickness="0,1,0,0">
                                        <Border.Background>
                                            <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
                                                <GradientStop Offset="1" Color="#FF2F2F2F" />
                                                <GradientStop Color="#FF454545" />
                                            </LinearGradientBrush>
                                        </Border.Background>
                                        <Grid>
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="45" />
                                                <ColumnDefinition />
                                            </Grid.ColumnDefinitions>
                                            <Ellipse Width="15"
                                                     Height="15"
                                                     HorizontalAlignment="Center"
                                                     VerticalAlignment="Center"
                                                     RenderTransformOrigin="0.5,0.5"
                                                     Stroke="Black">
                                                <Ellipse.Fill>
                                                    <RadialGradientBrush Center="0.383,0.622" GradientOrigin="0.383,0.622" RadiusX="1.022" RadiusY="0.989">
                                                        <GradientStop Color="White" />
                                                        <GradientStop Offset="0.536" Color="#FFA54425" />
                                                        <GradientStop Offset="0.931" Color="#FFC9907D" />
                                                    </RadialGradientBrush>
                                                </Ellipse.Fill>
                                                <Ellipse.RenderTransform>
                                                    <TransformGroup>
                                                        <ScaleTransform />
                                                        <SkewTransform />
                                                        <RotateTransform Angle="180" />
                                                        <TranslateTransform />
                                                    </TransformGroup>
                                                </Ellipse.RenderTransform>
                                            </Ellipse>
                                            <Border Grid.Column="1"
                                                    Margin="0"
                                                    BorderBrush="#FF2E2E2E"
                                                    BorderThickness="2,0,0,0">
                                                <Border.Background>
                                                    <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
                                                        <GradientStop Offset="1" Color="#FF363636" />
                                                        <GradientStop Color="#FF595858" />
                                                    </LinearGradientBrush>
                                                </Border.Background>
                                                <Grid>
                                                    <Grid.ColumnDefinitions>
                                                        <ColumnDefinition />
                                                        <ColumnDefinition Width="Auto" />
                                                        <ColumnDefinition Width="Auto" />
                                                    </Grid.ColumnDefinitions>
                                                    <TextBlock Name="TxtMessage"
                                                               Margin="10,5,0,8"
                                                               HorizontalAlignment="Left"
                                                               VerticalAlignment="Center"
                                                               FontSize="17"
                                                               Foreground="{DynamicResource {x:Static SystemColors.HighlightTextBrushKey}}"
                                                               LineHeight="20"
                                                               TextWrapping="Wrap" />
                                                    <TextBlock x:Name="textBlock"
                                                               Grid.Column="1"
                                                               Width="22"
                                                               Height="22"
                                                               Margin="5"
                                                               HorizontalAlignment="Center"
                                                               VerticalAlignment="Center"
                                                               Cursor="Hand"
                                                               FontFamily="Bodoni MT Black"
                                                               FontSize="18"
                                                               FontWeight="Bold"
                                                               Foreground="{DynamicResource {x:Static SystemColors.WindowTextBrushKey}}"
                                                               dhcc:FocusManager.OnlyMouseControlHandled="{x:Static ControlsHelper:ControlHelper.EmptyMouseHandled}"
                                                               RenderTransformOrigin="0.5,0.5"
                                                               Text="×"
                                                               TextAlignment="Center"
                                                               ToolTip="关闭">
                                                    </TextBlock>
                                                    <StackPanel x:Name="ButtonGroup"
                                                                Grid.Row="2"
                                                                HorizontalAlignment="Right"
                                                                Orientation="Horizontal" />
                                                </Grid>
                                            </Border>
                                        </Grid>
                                    </Border>
                                </Border>
                            </Grid>
                        </Presentation:TradePage>
                    </Presentation:PageContainer>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>