Files
DMS/DMS.WPF/Views/Dialogs/ConfirmDialog.xaml

28 lines
1.0 KiB
Plaintext
Raw Permalink Normal View History

<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">
2025-07-01 21:34:20 +08:00
<Grid Width="360" Margin="10">
<TextBlock
Margin="20"
FontSize="14"
FontWeight="Bold"
Text="{Binding Message}"
TextWrapping="Wrap" />
2025-07-01 21:34:20 +08:00
</Grid>
</ui:ContentDialog>