初步完成邮件功能
This commit is contained in:
26
DMS.WPF/Views/EmailManagementView.xaml.cs
Normal file
26
DMS.WPF/Views/EmailManagementView.xaml.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using DMS.WPF.ViewModels;
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace DMS.WPF.Views
|
||||
{
|
||||
/// <summary>
|
||||
/// EmailManagementView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class EmailManagementView : UserControl
|
||||
{
|
||||
public EmailManagementView()
|
||||
{
|
||||
InitializeComponent();
|
||||
DataContextChanged += EmailManagementView_DataContextChanged;
|
||||
}
|
||||
|
||||
private void EmailManagementView_DataContextChanged(object sender, System.Windows.DependencyPropertyChangedEventArgs e)
|
||||
{
|
||||
if (DataContext is EmailManagementViewModel viewModel)
|
||||
{
|
||||
// 加载数据
|
||||
viewModel.LoadDataCommand.Execute(null);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user