ToastHeader Class

Definition

Defines a visual header for the toast notification.

C#
public sealed class ToastHeader
Inheritance
ToastHeader

Constructors

ToastHeader(String, String, String)

Initializes a new instance of the ToastHeader class. Constructs a toast header with all the required properties.

Properties

ActivationOptions

Gets or sets additional options relating to activation of the toast header. New in Creators Update

ActivationType

Gets or sets the type of activation this header will use when clicked. Defaults to Foreground. Note that only Foreground and Protocol are supported.

Arguments

Gets or sets a developer-defined string of arguments that is returned to the app when the user clicks this header. Cannot be null.

Id

Gets or sets a developer-created identifier that uniquely identifies this header. If two notifications have the same header id, they will be displayed underneath the same header in Action Center. Cannot be null.

Title

Gets or sets a title for the header. Cannot be null.

Applies to

Product Versions
Windows Community Toolkit 6.1.1, 7.0.0, 7.1.0