Skip to main content

ToastNotification Members

A toast notification.

Constructors

Name Description
ToastNotification() Initializes a new instance of the ToastNotification class with the default settings.
ToastNotification(Object, Image, String, Image, String, Image, String, String, String, String, String, ToastNotificationSound, ToastNotificationDuration, Nullable<DateTimeOffset>, AppLogoCrop, ToastNotificationTemplate) Initializes a new toast notification and specifies its content that matches the Generic template.
ToastNotification(Object, Image, String, String, String, ToastNotificationSound, ToastNotificationDuration, ToastNotificationTemplate) Initializes a new instance of the ToastNotification class with the specified settings.
ToastNotification(Object, Image, String, String, String, ToastNotificationTemplate) Initializes a new instance of the ToastNotification class with the specified settings.
ToastNotification(Object, Image, String, String, String, String, ToastNotificationSound, ToastNotificationDuration, ToastNotificationTemplate) Initializes a new instance of the ToastNotification class with the specified settings.
ToastNotification(Object, Image, String, String, String, String, ToastNotificationTemplate) Initializes a new instance of the ToastNotification class with the specified settings.

Properties

Name Description
AppLogoImage Gets or sets the application logo image. This image is shown when the notification has the Generic template applied.
AppLogoImageCrop Gets or sets the way the ToastNotification.AppLogoImage is cropped.
AppLogoImagePath Gets or sets the path to the image that is used as the application logo image. This image is shown when the notification has the Generic template applied.
AttributionText Gets or sets the attribution text, displayed to the application name’s right. This text is shown when the notification has the Generic template applied.
Body Gets or sets this ToastNotification‘s first body text string.
Body2 Gets or sets this ToastNotification‘s second body text string.
DisplayTimestamp Gets or sets the date and time associated with this notification. The notification time is visible in the Windows Action Center.
Duration Gets or sets this ToastNotification duration.
HasAppLogoImage Returns whether this ToastNotification has an application logo image.
HasAppLogoImagePath Returns whether or not this notification has the application image path specified.
HasHeroImage Returns whether or not this notification has the hero image specified.
HasHeroImagePath Returns whether or not this notification has the path to the hero image specified.
HasImage Gets whether this ToastNotification currently has an image.
HasImagePath Gets whether or not this notification has its image path specified.
HasSoundOrDuration Gets whether or not this notification has its ToastNotification.Sound or ToastNotification.Duration specified.
Header Gets or sets this ToastNotification‘s header text string.
HeroImage

Gets or sets the “hero image” - an image docked to the notification’s top. This image is shown when the notification has the Generic template applied.

HeroImagePath

Gets or sets the path to the “hero image” - an image docked to the notification’s top. This image is shown when the notification has the Generic template applied.

ID Gets or sets this ToastNotification‘s ID.
Image Gets or sets the image, displayed within this ToastNotification.
ImagePath Gets or sets the path to an image displayed by this ToastNotification.
Sound Gets or sets the sound played when this ToastNotification is shown.
Template Gets or sets the template currently applied to this ToastNotification.

Methods

Name Description
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
See Also