You must call BrightnessOverride.GetForCurrentView from the main UI thread. The returned brightness override object might not be the same between multiple calls to BrightnessOverride.GetForCurrentView on the same thread. This method requires CoreWindow, so it can be used only by apps that are currently running in a window. This method does not require CoreWindow so it can be used by apps that are running in the background. If TRUE, the device has at least one brightness controllable display that supports brightness override. Indicates whether the device currently has at least one brightness controllable display. This property value will always be FALSE if StartOverride() isn’t called. If TRUE, the current brightness level matches the override brightness level.
You need to first call SetBrightnessLevel to set a brightness level.īOOLEAN value that indicates whether the brightness override is active. When you first retrieve an initialized BrightnessOverride object from GetDefaultForSystem or from GetForCurrentView, the value of that object's BrightnessLevel property is undefined (the value doesn't, for example, represent the current system brightness level). Public sealed class BrightnessOverride Public NotInheritable Class BrightnessOverride Inheritance In this article public ref class BrightnessOverride sealed /// You need to first call SetBrightnessLevel to set a brightness level.