Skip to main content

IToastNotificationProperties Members

Exposes base ToastNotification properties.

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 IToastNotificationProperties.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 notification’s first body text string.
Body2 Gets or sets this notification’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 notification’s duration.
HasAppLogoImage Returns whether this notification 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 or sets whether this notification currently has an image.
HasImagePath Gets whether or not this notification has its image path specified.
Header Gets or sets the header text string for this notification.
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 notification’s ID.
Image Gets or sets this notification’s image.
ImagePath Gets or sets the path to an image displayed by this ToastNotification.
Sound Gets or sets the sound played when this notification is shown.
Template Gets or sets the current template for this notification.

Methods

Name Description
Dispose() Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Inherited from IDisposable.
See Also