PrivacyInfoView.xaml.cs
661 Bytes
using HHECS.DAQClient.ViewModel;
using Microsoft.Extensions.DependencyInjection;
using System.Windows;
namespace HHECS.DAQClient.View
{
/// <summary>
/// PrivacyInfoView.xaml 的交互逻辑
/// </summary>
public partial class PrivacyInfoView : Window
{
private readonly PrivacyInfoVM vm;
public PrivacyInfoView()
{
InitializeComponent();
vm = App.Current.Services.GetService<PrivacyInfoVM>();
DataContext = vm;
vm.Owner = this;
}
private void Window_LocationChanged(object sender, EventArgs e)
{
vm.Reload();
}
}
}