예제 #1
0
        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);
        }
예제 #2
0
 public MainViewModel()
 {
     MainViewModel.SelectedColorVariation = Office2016ColorVariations.Colorful;
     AppearanceManager.ChangeAppearance(MainViewModel.SelectedColorVariation);
     this.ChangeAppearanceCommand = new DelegateCommand(this.ChangeColorVariation);
 }