private void ChangeColorVariation(object parameter) { var commandParameter = parameter as AppearanceCommandParameter; if (this.ColorVariation == commandParameter.ColorVariation) { return; } this.CurrentColorVariation = commandParameter.ColorVariation; MainViewModel.SelectedColorVariation = this.CurrentColorVariation; this.ColorVariation = commandParameter.ColorVariation; AppearanceManager.ChangeAppearance(this.ColorVariation); }
public MainViewModel() { MainViewModel.SelectedColorVariation = Office2016ColorVariations.Colorful; AppearanceManager.ChangeAppearance(MainViewModel.SelectedColorVariation); this.ChangeAppearanceCommand = new DelegateCommand(this.ChangeColorVariation); }