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

38 lines
1.8 KiB
Plaintext
Raw Normal View History

2025-07-19 11:11:01 +08:00
<ui:ContentDialog x:Class="DMS.WPF.Views.Dialogs.ConfirmDialog"
2025-07-01 21:34:20 +08:00
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:ikw="http://schemas.inkore.net/lib/ui/wpf"
xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern"
2025-07-26 10:05:43 +08:00
xmlns:vmd="clr-namespace:DMS.WPF.ViewModels.Dialogs"
2025-07-28 13:06:36 +08:00
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
xmlns:ex="clr-namespace:DMS.Extensions"
xmlns:en="clr-namespace:DMS.Core.Enums"
2025-07-01 21:34:20 +08:00
Title="{Binding Title}"
CloseButtonText="取消"
DefaultButton="Primary"
2025-07-28 13:06:36 +08:00
PrimaryButtonText="{Binding PrimaryButContent}"
2025-07-01 21:34:20 +08:00
Background="#fff"
d:DataContext="{d:DesignInstance vmd:ConfrimDialogViewModel}"
mc:Ignorable="d">
2025-07-28 13:06:36 +08:00
<i:Interaction.Triggers>
<i:EventTrigger EventName="PrimaryButtonClick">
2025-08-23 09:09:07 +08:00
<i:InvokeCommandAction Command="{Binding PrimaryButtonCommand}" />
2025-07-28 13:06:36 +08:00
</i:EventTrigger>
<i:EventTrigger EventName="CloseButtonClick">
<i:InvokeCommandAction Command="{Binding CancleButtonCommand}" />
</i:EventTrigger>
</i:Interaction.Triggers>
2025-07-01 21:34:20 +08:00
<Grid Width="360"
2025-07-01 21:34:20 +08:00
Margin="10">
<TextBlock Margin="20"
FontSize="14"
TextWrapping="Wrap"
2025-07-01 21:34:20 +08:00
FontWeight="Bold"
Text="{Binding Message}">
</TextBlock>
</Grid>
</ui:ContentDialog>