RadToastNotification
Represents a toast notification that can be displayed to the user, providing customizable content, templates, and delivery options for desktop notifications.
Definition
Namespace:Telerik.RadToastNotificationManager
Assembly:Telerik.WinControls.RadToastNotification.dll
Syntax:
public class RadToastNotification : INotifyPropertyChanged
Inheritance: objectRadToastNotification
Implements:
Constructors
Initializes a new instance of the RadToastNotification class with a generic template type and a randomly generated unique name identifier.
public RadToastNotification()
Initializes a new instance of the RadToastNotification class by creating a copy of an existing notification with identical properties.
public RadToastNotification(RadToastNotification toastNotification)
The source RadToastNotification instance to copy properties from.
Initializes a new instance of the RadToastNotification class with the specified template type, unique name, and custom XML content for advanced notification customization.
public RadToastNotification(RadToastTemplateType type, string name, string xml)
The RadToastTemplateType that defines the notification's layout structure.
namestringThe unique identifier name for the notification, which must not be null or empty.
xmlstringThe custom XML content that defines the structure and content of the notification body.
Initializes a new instance of the RadToastNotification class with the specified template type and unique name, using the default XML template for the template type.
public RadToastNotification(RadToastTemplateType type, string name)
The RadToastTemplateType that defines the notification's layout and visual structure.
namestringThe unique identifier name for the notification, which must not be null or empty.
Properties
Gets or sets the binding data as key-value pairs for template parameter substitution, where the key represents the binding parameter name and the value contains the replacement content.
public IDictionary<string, string> BindingData { get; set; }
Gets or sets the scheduled delivery time for the toast notification, allowing notifications to be displayed at a specific future time.
public DateTimeOffset DeliveryTime { get; set; }
Gets or sets a unique identifier name for the RadToastNotification that can be used for identification and management within a RadToastNotificationCollection.
public string Name { get; set; }
Gets or sets the unique tag identifier for this notification, enabling updates or replacement of existing notifications with the same tag.
public string Tag { get; set; }
Gets or sets the template type that defines the layout and visual structure of the RadToastNotification.
public RadToastTemplateType TemplateType { get; set; }
Gets or sets the XML content that defines the structure, layout, and content of the RadToastNotification body.
public string Xml { get; set; }
Events
Occurs when a property value changes, providing notification of property modifications for data binding and change tracking scenarios.
public event PropertyChangedEventHandler PropertyChanged
Implements: