public void Execute(object parameter) { SettingPopUp settingPopUp = parameter as SettingPopUp; settingPopUp.viewModel.SettingCheck = false; settingPopUp.Close(); }
public void Execute(object parameter) { MainViewModel mainViewModel = parameter as MainViewModel; SettingPopUp settingPopUp = new SettingPopUp(mainViewModel); settingPopUp.Show(); mainViewModel.SettingCheck = true; }
private void updatePopPosition() { this.Dispatcher.BeginInvoke(new Action(() => { double offset = shotCutPopUpName.HorizontalOffset; shotCutPopUpName.HorizontalOffset = offset + 1; shotCutPopUpName.HorizontalOffset = offset; shotCutPopUpName.UpdateLayout(); double SettingOffset = SettingPopUp.HorizontalOffset; SettingPopUp.HorizontalOffset = offset + 1; SettingPopUp.HorizontalOffset = offset; SettingPopUp.UpdateLayout(); })); }
public MainViewModel() { SettingCheck = false; UserCheck = false; navigateToPageCommandProperty = new navigateToPageCommand(); bookMarkCommandProperty = new BookMarkCommand(); settingCommandProperty = new SettingCommand(); settingPopUpPage = new SettingPopUp(this); userCommandProprety = new UserCommand(); userPopUpPage = new UserPopUp(this); mainCloseCommandProperty = new MainCloseCommand(); toMaxOrNormalCommandProperty = new ToMaxOrNormalCommand(); toMiniCommandProperty = new ToMiniCommand(); titleBarCommandProperty = new MainTitleBarCommand(); searchCommandProperty = new searchCommand(); }