Share via


LightDismissOverlayMode Enum

Definition

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

public enum class LightDismissOverlayMode
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
enum class LightDismissOverlayMode
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
public enum LightDismissOverlayMode
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