InfoBarCloseReason Enum

Definition

Defines constants that indicate the cause of the InfoBar closure.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

public enum class InfoBarCloseReason
/// [Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=0)]
/// [Windows.Foundation.Metadata.Version(1)]
enum class InfoBarCloseReason
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.XamlContract, 65536)]
enum class InfoBarCloseReason
[Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=0)]
[Windows.Foundation.Metadata.Version(1)]
public enum InfoBarCloseReason
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.XamlContract), 65536)]
public enum InfoBarCloseReason
Public Enum InfoBarCloseReason
Inheritance
InfoBarCloseReason
Attributes
Microsoft.UI.Xaml.CustomAttributes.MUXContractPropertyAttribute VersionAttribute ContractVersionAttribute

Fields

CloseButton 0

The InfoBar was closed by the user clicking the close button.

Programmatic 1

The InfoBar was programmatically closed.

Applies to