Class RadToastNotification
Represents a toast notification that can be displayed to the user, providing customizable content, templates, and delivery options for desktop notifications.
Inheritance
Inherited Members
Namespace: Telerik.RadToastNotificationManager
Assembly: Telerik.WinControls.RadToastNotification.dll
Syntax
public class RadToastNotification : INotifyPropertyChanged
Constructors
RadToastNotification()
Initializes a new instance of the RadToastNotification class with a generic template type and a randomly generated unique name identifier.
Declaration
public RadToastNotification()
RadToastNotification(RadToastNotification)
Initializes a new instance of the RadToastNotification class by creating a copy of an existing notification with identical properties.
Declaration
public RadToastNotification(RadToastNotification toastNotification)
Parameters
|
RadToastNotification
toastNotification
The source RadToastNotification instance to copy properties from. |
RadToastNotification(RadToastTemplateType, String)
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.
Declaration
public RadToastNotification(RadToastTemplateType type, string name)
Parameters
|
RadToastTemplateType
type
The RadToastTemplateType that defines the notification's layout and visual structure. |
|
System.String
name
The unique identifier name for the notification, which must not be null or empty. |
RadToastNotification(RadToastTemplateType, String, String)
Initializes a new instance of the RadToastNotification class with the specified template type, unique name, and custom XML content for advanced notification customization.
Declaration
public RadToastNotification(RadToastTemplateType type, string name, string xml)
Parameters
|
RadToastTemplateType
type
The RadToastTemplateType that defines the notification's layout structure. |
|
System.String
name
The unique identifier name for the notification, which must not be null or empty. |
|
System.String
xml
The custom XML content that defines the structure and content of the notification body. |
Properties
BindingData
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.
Declaration
public IDictionary<string, string> BindingData { get; set; }
Property Value
|
System.Collections.Generic.IDictionary<System.String, System.String>
|
DeliveryTime
Gets or sets the scheduled delivery time for the toast notification, allowing notifications to be displayed at a specific future time.
Declaration
public DateTimeOffset DeliveryTime { get; set; }
Property Value
|
System.DateTimeOffset
|
Name
Gets or sets a unique identifier name for the RadToastNotification that can be used for identification and management within a RadToastNotificationCollection.
Declaration
public string Name { get; set; }
Property Value
|
System.String
|
Tag
Gets or sets the unique tag identifier for this notification, enabling updates or replacement of existing notifications with the same tag.
Declaration
public string Tag { get; set; }
Property Value
|
System.String
|
TemplateType
Gets or sets the template type that defines the layout and visual structure of the RadToastNotification.
Declaration
public RadToastTemplateType TemplateType { get; set; }
Property Value
|
RadToastTemplateType
|
Xml
Gets or sets the XML content that defines the structure, layout, and content of the RadToastNotification body.
Declaration
public string Xml { get; set; }
Property Value
|
System.String
|
Events
PropertyChanged
Occurs when a property value changes, providing notification of property modifications for data binding and change tracking scenarios.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
|
System.ComponentModel.PropertyChangedEventHandler
|