<UserControl x:Class="ACP.Views.Dialogs.MessageBoxView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:local="clr-namespace:ACP.Views.Dialogs"
             xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
             mc:Ignorable="d"
             xmlns:prism="http://prismlibrary.com/"
             Background="Transparent"
             prism:ViewModelLocator.AutoWireViewModel="True"
             Height="250"
             Width="300">
    <prism:Dialog.WindowStyle>
        <Style BasedOn="{StaticResource DialogUserManageStyle}"
               TargetType="Window" />
    </prism:Dialog.WindowStyle>
    <Border CornerRadius="20"
            Background="white"
            MouseLeftButtonDown="Border_MouseLeftButtonDown">
        <Grid  Background="Transparent">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
           

            <!-- Title -->
            <TextBlock Grid.Row="0"
               Margin="15 5 5  5"
                       FontSize="18"
                       FontWeight="Bold"
                       VerticalAlignment="Center"
                       Text="{Binding Title}"
                       Foreground="#333" />

            <StackPanel HorizontalAlignment="Center" 
                        Grid.Row="1">
                <!-- Icon -->
                <Image 
                           Width="100"
                    Height="100"
                           VerticalAlignment="Top"
                           Margin="5 15 0 0"
                           Source="{Binding Icon}" />
                <!-- Message -->
                <TextBlock 
                           FontSize="20"
                     Margin="15 0 0 0"
                           TextAlignment="Center"
                           TextWrapping="Wrap"
                           Text="{Binding Message}" />
            </StackPanel>
            <!-- Buttons -->
            <StackPanel Grid.Row="2"
                     
                        Orientation="Horizontal"
                        HorizontalAlignment="Right">

                <Button Content="Yes"
                        Width="80"
                        Margin="10 10"
                        Visibility="{Binding ShowYes, Converter={StaticResource BooleanToVisibilityConverter}}"
                        Command="{Binding YesCommand}" />

                <Button Content="No"
                        Width="80"
                        Margin="10 10"
                        Visibility="{Binding ShowNo, Converter={StaticResource BooleanToVisibilityConverter}}"
                        Command="{Binding NoCommand}" />

                <Button Content="OK"
                        Width="80"
                        Margin="10 10"
                        Visibility="{Binding ShowOk, Converter={StaticResource BooleanToVisibilityConverter}}"
                        Command="{Binding OkCommand}" />

                <Button Content="Cancel"
                        Width="80"
                        Margin="10 10"
                        Visibility="{Binding ShowCancel, Converter={StaticResource BooleanToVisibilityConverter}}"
                        Command="{Binding CancelCommand}" />
            </StackPanel>
        </Grid>
    </Border>
</UserControl>
