<UserControl x:Class="NebulaAuth.View.Dialogs.ConfirmCancelDialog"
             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:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
             xmlns:nebulaAuth="clr-namespace:NebulaAuth"
             mc:Ignorable="d"
             Height="Auto" Width="Auto" MaxWidth="500"
             Background="{DynamicResource WindowBackground}">
    <Grid MinHeight="140" MinWidth="350">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <nebulaAuth:DialogHeader Title="{Tr ConfirmCancelDialog.Title}"
                                 CloseParameter="{StaticResource False}" />
        <Grid Grid.Row="1" Margin="12">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <nebulaAuth:HintBox FontSize="14" x:Name="ConfirmHint" Text="Confirm?" Margin="10" />
            <Grid Grid.Row="1" Margin="10,0,10,5">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <Button
                    Width="130"
                    HorizontalAlignment="Left"

                    Margin="2,0,4,0"
                    Style="{StaticResource MaterialDesignRaisedButton}"
                    Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}"
                    CommandParameter="{StaticResource True}"
                    Content="{Tr Common.OK}"
                    IsDefault="True" />
                <Button Grid.Column="1"
                        HorizontalAlignment="Right"
                        Width="130"
                        Margin="0,0,2,0"
                        IsCancel="True"
                        Style="{StaticResource MaterialDesignOutlinedButton}"
                        Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}"
                        CommandParameter="{StaticResource False}"
                        Content="{Tr Common.Cancel}" />
            </Grid>
        </Grid>
    </Grid>
</UserControl>