Files
DMS/Views/Dialogs/PollLevelDialog.xaml

31 lines
1.4 KiB
Plaintext
Raw Normal View History

2025-07-05 16:13:46 +08:00
<ui:ContentDialog x:Class="PMSWPF.Views.Dialogs.PollLevelDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:enums="clr-namespace:PMSWPF.Enums"
xmlns:extensions="clr-namespace:PMSWPF.Extensions"
xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern"
xmlns:vc="clr-namespace:PMSWPF.ValueConverts"
mc:Ignorable="d"
Title="修改轮询频率"
PrimaryButtonText="确定"
CloseButtonText="取消"
d:DesignHeight="150" d:DesignWidth="300">
<ui:ContentDialog.Resources>
<vc:EnumDescriptionConverter x:Key="EnumDescriptionConverter" />
</ui:ContentDialog.Resources>
<Grid>
<ComboBox
ItemsSource="{Binding PollLevelTypes}"
SelectedItem="{Binding SelectedPollLevelType}"
Margin="20">
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Converter={StaticResource EnumDescriptionConverter}}"/>
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
</Grid>
</ui:ContentDialog>