<Window x:Class="MWSDomain.Common.UserControls.Common.MsgBox"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:vc="clr-namespace:MWSDomain.Common.Converts"  
        mc:Ignorable="d" WindowStyle="None" ResizeMode="NoResize" WindowStartupLocation="CenterScreen"
        Width="400" Height="260">
    <Window.Resources>
        <vc:VisibilityConverter x:Key="vis"/>
    </Window.Resources>
    <Grid>
        <Border Background="White">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="30"/>
                    <RowDefinition/>
                    <RowDefinition Height="60"/>
                </Grid.RowDefinitions>
                <materialDesign:ColorZone  Padding="40" Mode="Custom" Background="#2DA6EC"/>
                <TextBlock  Text="消息窗口"  FontSize="15" VerticalAlignment="Center" Margin="5 0 0 0" Foreground="White"  HorizontalAlignment="Left" />

                <StackPanel Grid.Row="1" Orientation="Horizontal">
                    <materialDesign:PackIcon Kind="{Binding Icon}" Foreground="{Binding Color}" Margin="20 0 0 0" VerticalAlignment="Center" Width="40" Height="40"/>
                    <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto"  Margin="15 20 0 40" >
                        <StackPanel Width="300" HorizontalAlignment="Left" VerticalAlignment="Center">
                            <TextBlock  VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="#737373" FontSize="15"  
                                        Text="{Binding Msg}"  TextWrapping="Wrap" />
                        </StackPanel>
                    </ScrollViewer>
                </StackPanel>
                <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Center">
                    <Button Content="取消" Background="#FFFFFF" BorderBrush="#2DA6EC" BorderThickness="1" materialDesign:ShadowAssist.ShadowDepth="Depth0"
                            Foreground="#2DA6EC"  Width="150" FontSize="16" materialDesign:ButtonAssist.CornerRadius="10" Height="45"
                            Margin="10 0 0 0"  Command="{Binding CancelCommand}" 
                            Visibility="{Binding BtnHide,Converter={StaticResource vis}}">
                    </Button>
                    <Button Content="确定" Width="150" FontSize="16" materialDesign:ButtonAssist.CornerRadius="10" Height="45"
                             materialDesign:ShadowAssist.ShadowDepth="Depth0"  Background="#2DA6EC"  BorderThickness="0"
                            Margin="10 0 10 0" Command="{Binding SaveCommand}" >
                    </Button>
                </StackPanel>
            </Grid>
        </Border>
    </Grid>
</Window>
