void OnRadioLabelToggled(View view) { // Set Opacity to indicate toggled state. view.Opacity = view.GetRadioState() ? 1.0 : 0.5; // Possibly change the current color mode. if (view.GetRadioState ()) { ColorMode newColorMode = (ColorMode) Enum.Parse (typeof(ColorMode), view.StyleId); if (currentColorMode != newColorMode) { currentColorMode = newColorMode; SetSlidersAndBindings (); } } }