コード例 #1
0
        /// <summary>
        /// 打开设置窗口
        /// </summary>
        private void OpenSettingMethod()
        {
            var win = new SettingWindow();
            var vm  = new SettingViewModel(win);

            win.DataContext = vm;
            win.Show();
        }
コード例 #2
0
 public SettingWindow()
 {
     InitializeComponent();
     settingViewModel = new SettingViewModel();
     this.DataContext = settingViewModel;
 }