LightDismissOverlayMode Enum

Definition

Defines constants that specify whether the area outside of a light-dismiss UI is darkened.

C#
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
public enum LightDismissOverlayMode
Inheritance
LightDismissOverlayMode
Attributes

Fields

Name Value Description
Auto 0

The device-family the app is running on determines whether the area outside of a light-dismiss UI is darkened.

On 1

The area outside of a light-dismiss UI is darkened for all device families.

Off 2

The area outside of a light-dismiss UI is not darkened for all device families.

Remarks

Transient UI, such as a Flyout or the open drop-down of a ComboBox, closes when you click or tap outside of it. This is called light-dismiss. "Overlay" refers to the area outside of a light-dismiss UI.

By default, the "overlay" is not darkened.

Applies to

Product Versions
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6