-api-id | -api-type |
---|---|
E:Windows.Graphics.Display.BrightnessOverride.IsOverrideActiveChanged |
winrt event |
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.
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);
}