第一步定义对话框
<UserControlx:Class="TemplateDemo.Views.Edit.UCEditUser"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:local="clr-namespace:TemplateDemo.Views.Edit"xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"xmlns:system="clr-namespace:System;assembly=mscorlib"d:DesignHeight="450"d:DesignWidth="350"Background="Transparent"mc:Ignorable="d" Loaded="UserControl_Loaded"><Border Background="{DynamicResource TitleBackground}" CornerRadius="5,5,5,5"><Border.E