AppNotificationButtonStyle Enum

Definition

Specifies the button styles that can be assigned to an AppNotificationButton to provide a consistent experience for common scenarios.

public enum class AppNotificationButtonStyle
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.AppNotifications.Builder.AppNotificationBuilderContract, 65536)]
enum class AppNotificationButtonStyle
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.AppNotifications.Builder.AppNotificationBuilderContract), 65536)]
public enum AppNotificationButtonStyle
var value = Microsoft.Windows.AppNotifications.Builder.AppNotificationButtonStyle.default
Public Enum AppNotificationButtonStyle
Inheritance
AppNotificationButtonStyle
Attributes

Fields

Critical 2

The style associated with a critical action.

Default 0

The default style.

Success 1

The style associated with a successful action.

Remarks

Assign a style to an app notification button by calling AppNotificationButton.SetButtonStyle.

Button styles are only supported for on Windows 10 Build 19041 and later. Call AppNotificationButton.IsButtonStyleSupported to determine at runtime if button styles are supported on the current device.

For guidance on using the AppNotificationBuilder APIs to create the UI for app notifications, see App notification content.

For reference information about the XML schema for app notifications, see App notification content schema.

Applies to