Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1.09 KB

brightnessoverride_isoverrideactivechanged.md

File metadata and controls

30 lines (22 loc) · 1.09 KB
-api-id -api-type
E:Windows.Graphics.Display.BrightnessOverride.IsOverrideActiveChanged
winrt event

Windows.Graphics.Display.BrightnessOverride.IsOverrideActiveChanged

-description

Occurs when the screen brightness level either starts to match or stops to match the override brightness level. This event is raised when the IsOverrideActive property changes state.

-remarks

-see-also

-examples

This example shows how to use the IsOverrideActiveChanged event and the OnIsOverrideActiveChanged event handler to notify the user whether or not the brightness override object is in fact controlling the screen brightness.

bo.IsOverrideActiveChanged += OnIsOverrideActiveChanged;
...
private void OnIsOverrideActiveChanged(BrightnessOverride sender, object e)
{
    rootPage.NotifyUser("Brightness override is " + (sender.IsOverrideActive ? "active" : "not active"),   NotifyType.StatusMessage);
}