/// <summary> /// 打开设置窗口 /// </summary> private void OpenSettingMethod() { var win = new SettingWindow(); var vm = new SettingViewModel(win); win.DataContext = vm; win.Show(); }
public SettingWindow() { InitializeComponent(); settingViewModel = new SettingViewModel(); this.DataContext = settingViewModel; }