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

37 lines
1.7 KiB
Plaintext
Raw Normal View History

<controls:ContentDialog
x:Class="DMS.WPF.Views.Dialogs.IsActiveDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="http://schemas.inkore.net/lib/ui/wpf/modern"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:valueConverts="clr-namespace:DMS.WPF.ValueConverts"
xmlns:vm="clr-namespace:DMS.WPF.ViewModels.Dialogs"
Title="{Binding Title}"
d:DataContext="{d:DesignInstance vm:IsActiveDialogViewModel}"
CloseButtonCommand="{Binding CancleButtonCommand}"
CloseButtonText="取消"
PrimaryButtonCommand="{Binding PrimaryButtonCommand}"
PrimaryButtonText="{Binding PrimaryButText}"
mc:Ignorable="d">
2025-07-16 15:50:57 +08:00
<controls:ContentDialog.Resources>
<valueConverts:NullableBooleanConverter x:Key="NullableBooleanConverter" />
2025-07-16 15:50:57 +08:00
</controls:ContentDialog.Resources>
2025-07-07 21:15:27 +08:00
<Grid>
<StackPanel Margin="10" Orientation="Vertical">
2025-07-16 15:50:57 +08:00
<StackPanel Orientation="Horizontal">
<RadioButton
Margin="10,5"
Content="启用"
FontSize="16"
IsChecked="{Binding SelectedIsActive, Mode=TwoWay, Converter={StaticResource NullableBooleanConverter}, ConverterParameter=True}" />
<RadioButton
Margin="10,5"
Content="停用"
FontSize="16"
IsChecked="{Binding SelectedIsActive, Mode=TwoWay, Converter={StaticResource NullableBooleanConverter}, ConverterParameter=False}" />
2025-07-16 15:50:57 +08:00
</StackPanel>
2025-07-07 21:15:27 +08:00
</StackPanel>
</Grid>
</controls:ContentDialog>