ToastButtonDismiss Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A button that, when clicked, is interpreted as a "dismiss" by the system, and the Toast is dismissed just like if the user swiped the Toast away.
public sealed class ToastButtonDismiss : Microsoft.Toolkit.Uwp.Notifications.IToastButton
type ToastButtonDismiss = class
interface IToastButton
Public NotInheritable Class ToastButtonDismiss
Implements IToastButton
- Inheritance
-
ToastButtonDismiss
- Implements
Constructors
ToastButtonDismiss() |
Initializes a new instance of the ToastButtonDismiss class. |
ToastButtonDismiss(String) |
Initializes a new instance of the ToastButtonDismiss class. Constructs a system-handled dismiss button that displays your text on the button. |
Properties
CustomContent |
Gets custom text displayed on the button that overrides the default localized "Dismiss" text. |
HintActionId |
Gets or sets an identifier used in telemetry to identify your category of action. This should be something like "Delete", "Reply", or "Archive". In the upcoming toast telemetry dashboard in Dev Center, you will be able to view how frequently your actions are being clicked. |
ImageUri |
Gets or sets an optional image icon for the button to display. |