Exemplo n.º 1
0
        protected override void OnNavigatingFrom(NavigatingCancelEventArgs e)
        {
            deo.StopOverride();

            deo.IsOverrideActiveChanged -= Deo_IsOverrideActiveChanged;
            deo.CanOverrideChanged      -= Deo_CanOverrideChanged;
            deo.DisplayEnhancementOverrideCapabilitiesChanged -= Deo_DisplayEnhancementOverrideCapabilitiesChanged;
        }
Exemplo n.º 2
0
 private void OverrideToggle_Toggled(object sender, RoutedEventArgs e)
 {
     if (sender is ToggleSwitch toggleSwitch)
     {
         if (toggleSwitch.IsOn)
         {
             deo.RequestOverride();
         }
         else
         {
             CheckOverrideToggleEnableState();
             deo.StopOverride();
         }
     }
 }