2025-09-02 17:42:11 +08:00
|
|
|
<ui:ContentDialog
|
|
|
|
|
x:Class="DMS.WPF.Views.Dialogs.PollLevelDialog"
|
|
|
|
|
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:valueConverts="clr-namespace:DMS.WPF.ValueConverts"
|
|
|
|
|
xmlns:vmd="clr-namespace:DMS.WPF.ViewModels.Dialogs"
|
|
|
|
|
Title="{Binding Title}"
|
|
|
|
|
d:DataContext="{d:DesignInstance vmd:PollLevelDialogViewModel}"
|
|
|
|
|
CloseButtonCommand="{Binding CancleButtonCommand}"
|
|
|
|
|
CloseButtonText="取消"
|
|
|
|
|
PrimaryButtonCommand="{Binding PrimaryButtonCommand}"
|
|
|
|
|
PrimaryButtonText="{Binding PrimaryButText}"
|
|
|
|
|
mc:Ignorable="d">
|
2025-07-05 16:13:46 +08:00
|
|
|
<ui:ContentDialog.Resources>
|
2025-07-27 22:35:07 +08:00
|
|
|
<valueConverts:EnumDescriptionConverter x:Key="EnumDescriptionConverter" />
|
2025-07-05 16:13:46 +08:00
|
|
|
</ui:ContentDialog.Resources>
|
|
|
|
|
<Grid>
|
2025-09-02 17:42:11 +08:00
|
|
|
<ComboBox
|
|
|
|
|
Margin="20"
|
|
|
|
|
ItemsSource="{Binding PollLevelTypes}"
|
|
|
|
|
SelectedItem="{Binding SelectedPollLevelType}">
|
2025-07-05 16:13:46 +08:00
|
|
|
<ComboBox.ItemTemplate>
|
|
|
|
|
<DataTemplate>
|
2025-09-05 19:59:21 +08:00
|
|
|
<TextBlock Text="{Binding}" />
|
2025-07-05 16:13:46 +08:00
|
|
|
</DataTemplate>
|
|
|
|
|
</ComboBox.ItemTemplate>
|
|
|
|
|
</ComboBox>
|
|
|
|
|
</Grid>
|
|
|
|
|
</ui:ContentDialog>
|