<ui:ContentDialog x:Class="DMS.WPF.Views.Dialogs.OpcUaUpdateTypeDialog"
                  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:ui="http://schemas.inkore.net/lib/ui/wpf/modern"
                  xmlns:enums="clr-namespace:DMS.Core.Enums"
                  xmlns:extensions="clr-namespace:DMS.Extensions"
                  xmlns:viewModels="clr-namespace:DMS.WPF.ViewModels.Dialogs"
                  xmlns:enums1="clr-namespace:DMS.Core.Enums;assembly=DMS.Core"
                  mc:Ignorable="d"
                  d:DataContext="{d:DesignInstance Type=viewModels:OpcUaUpdateTypeDialogViewModel}"
                  Title="修改 OPC UA 更新方式"
                  PrimaryButtonText="确认"
                  CloseButtonText="取消"
                  DefaultButton="Primary">

    <Grid>
        <ComboBox Margin="15"
                  ItemsSource="{Binding Source={extensions:EnumBindingSource {x:Type enums1:OpcUaUpdateType}}}"
                  SelectedValue="{Binding SelectedUpdateType}"
                  VerticalAlignment="Center"/>
    </Grid>
</ui:ContentDialog>