public MainWindowViewModel() { KernelService.MainWindowViewModel = this; this._columnOwnerViewModel = new ColumnOwnerViewModel(this); this._notifierViewModel = new NotifierViewModel(this); this._notifyBlockViewModel = new NotifyBlockViewModel(this); // Input block dependents ColumnOwnerViewModel this._inputBlockViewModel = new InputBlockViewModel(this); this._userSelectionViewModel = new UserSelectionViewModel(); this._userSelectionViewModel.Finished += () => { this._isVisibleUserSelection = false; RaisePropertyChanged(() => IsVisibleUserSelection); RaisePropertyChanged(() => IsActivateMain); }; ViewModelHelper.BindNotification(Setting.SettingValueChangedEvent, this, (o, e) => { RaisePropertyChanged(() => IsNotifierBarBottom); RaisePropertyChanged(() => NotifierBarColumn); RaisePropertyChanged(() => IsInputBlockBottom); RaisePropertyChanged(() => InputBlockColumn); RaisePropertyChanged(() => FontFamily); RaisePropertyChanged(() => FontSize); }); }
public ColumnViewModel(ColumnOwnerViewModel parent) { this.Parent = parent; ViewModelHelper.BindNotification(Setting.SettingValueChangedEvent, this, (o, e) => { RaisePropertyChanged(() => TabColumn); }); }
public ColumnViewModel(ColumnOwnerViewModel parent) { this.Parent = parent; ViewModelHelper.BindNotification(Setting.SettingValueChangedEvent, this, (o, e) => RaisePropertyChanged(() => TabColumn)); }