<Window x:Class="NEIntelligentControl2.MessageWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:NEIntelligentControl2"
        mc:Ignorable="d"
        Title="MessageWindow" Height="150" Width="266.666667" WindowStartupLocation="CenterOwner" ResizeMode="NoResize">
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <Viewbox Width="35" Height="35" Margin="5">
                <Canvas Width="1024" Height="1024">
                    <Path Data="M512 85.333333c235.648 0 426.666667 191.018667 426.666667 426.666667s-191.018667 426.666667-426.666667 426.666667S85.333333 747.648 85.333333 512 276.352 85.333333 512 85.333333z m0 170.666667a42.666667 42.666667 0 0 0-42.666667 42.666667v341.333333a42.666667 42.666667 0 0 0 85.333334 0V298.666667a42.666667 42.666667 0 0 0-42.666667-42.666667z m0 554.666667a42.666667 42.666667 0 1 0 0-85.333334 42.666667 42.666667 0 0 0 0 85.333334z" Fill="#FAAD14"/>
                </Canvas>
            </Viewbox>
            <TextBlock Grid.Column="1" Text="{Binding RelativeSource={RelativeSource AncestorType=Window, Mode=FindAncestor}, Path=Message}" VerticalAlignment="Center" TextWrapping="Wrap"/>
        </Grid>
        <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="10,0,10,0" HorizontalAlignment="Right">
            <Button Content="确 定" Margin="10" Padding="12,3" Click="Button_Click" Tag="ok" Style="{StaticResource ConfirmButtonStyle}" IsDefault="True"/>
            <Button Content="取 消" Margin="10" Padding="12,3" Click="Button_Click" Tag="cancel" Style="{StaticResource CancelButtonStyle}" IsCancel="True"/>
        </StackPanel>
    </Grid>
</Window>
