New to Telerik UI for WinFormsStart a free 30-day trial

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:

C#
public class RadToastNotification : INotifyPropertyChanged

Inheritance: objectRadToastNotification

Implements: INotifyPropertyChanged

Constructors

Initializes a new instance of the RadToastNotification class with a generic template type and a randomly generated unique name identifier.

C#
public RadToastNotification()

Initializes a new instance of the RadToastNotification class by creating a copy of an existing notification with identical properties.

C#
public RadToastNotification(RadToastNotification toastNotification)
Parameters:toastNotificationRadToastNotification

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.

C#
public RadToastNotification(RadToastTemplateType type, string name, string xml)
Parameters:typeRadToastTemplateType

The RadToastTemplateType that defines the notification's layout structure.

namestring

The unique identifier name for the notification, which must not be null or empty.

xmlstring

The 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.

C#
public RadToastNotification(RadToastTemplateType type, string name)
Parameters:typeRadToastTemplateType

The RadToastTemplateType that defines the notification's layout and visual structure.

namestring

The 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.

C#
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.

C#
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.

C#
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.

C#
public string Tag { get; set; }

Gets or sets the template type that defines the layout and visual structure of the RadToastNotification.

C#
public RadToastTemplateType TemplateType { get; set; }

Gets or sets the XML content that defines the structure, layout, and content of the RadToastNotification body.

C#
public string Xml { get; set; }

Events

Occurs when a property value changes, providing notification of property modifications for data binding and change tracking scenarios.

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged