void UpdateShadingMode(bool mode) { ShadingMode = mode; //Toggle behaviors Behaviors.ForEach <Behavior>(b => b.Enabled = !b.Enabled); //Graphical Update if (mode) { //Enable CommandClearRegionShading.Icon.Opacity = 1.0; //Disable CommandStartRegionShading.Icon.Opacity = 0.2; CommandMakeBookProblem.Icon.Opacity = 0.2; CommandSynthProblem.Icon.Opacity = 0.2; } else { //Enable CommandStartRegionShading.Icon.Opacity = 1.0; CommandMakeBookProblem.Icon.Opacity = 1.0; CommandSynthProblem.Icon.Opacity = 1.0; //Disable CommandClearRegionShading.Icon.Opacity = 0.2; } }