<UserControl
             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:s="https://github.com/canton7/Stylet"
             xmlns:dialogs="clr-namespace:Artemis.UI.Shared.Screens.Dialogs"
             xmlns:Shared="clr-namespace:Artemis.UI.Shared" x:ClassModifier="internal"
             x:Class="Artemis.UI.Shared.Screens.Dialogs.ConfirmDialogView"
             mc:Ignorable="d"
             d:DesignHeight="163.274" d:DesignWidth="254.425"
             d:DataContext="{d:DesignInstance {x:Type dialogs:ConfirmDialogViewModel}}">
    <UserControl.Resources>
        <Shared:NullToVisibilityConverter x:Key="NullToVisibilityConverter"/>
    </UserControl.Resources>
    <StackPanel Margin="16">
        <TextBlock Style="{StaticResource MaterialDesignHeadline6TextBlock}" Text="{Binding Header}" TextWrapping="Wrap" />
        <TextBlock Style="{StaticResource MaterialDesignSubtitle1TextBlock}" 
                   Foreground="{DynamicResource MaterialDesignBodyLight}"
                   Margin="0 20 0 20"
                   Text="{Binding Text}" 
                   TextWrapping="Wrap" />

        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0 8 0 0">
            <Button Style="{StaticResource MaterialDesignFlatButton}"
                    Focusable="False"
                    IsCancel="True"
                    Command="{s:Action Cancel}"
                    Content="{Binding CancelText}" 
                    Visibility="{Binding CancelText, Converter={StaticResource NullToVisibilityConverter}, Mode=OneWay}" />
            <Button x:Name="ConfirmButton"
                    Style="{StaticResource MaterialDesignFlatButton}"
                    IsDefault="True"
                    Focusable="True"
                    Command="{s:Action Confirm}"
                    Content="{Binding ConfirmText}" />
        </StackPanel>

    </StackPanel>
</UserControl>