<ui:ContentDialog
    x:Class="DMS.WPF.Views.Dialogs.ConfirmDialog"
    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:ui="http://schemas.inkore.net/lib/ui/wpf/modern"
    xmlns:vmd="clr-namespace:DMS.WPF.ViewModels.Dialogs"
    Title="{Binding Title}"
    d:DataContext="{d:DesignInstance vmd:ConfirmDialogViewModel}"
    Background="#fff"
    CloseButtonCommand="{Binding CancleButtonCommand}"
    CloseButtonText="取消"
    DefaultButton="Primary"
    PrimaryButtonCommand="{Binding PrimaryButtonCommand}"
    PrimaryButtonText="{Binding PrimaryButText}"
    mc:Ignorable="d">

    <Grid Width="360" Margin="10">
        <TextBlock
            Margin="20"
            FontSize="14"
            FontWeight="Bold"
            Text="{Binding Message}"
            TextWrapping="Wrap" />
    </Grid>

</ui:ContentDialog>