Notification Class

A notification that can be shown in a window or by the host operating system.

Definition

Namespace: Avalonia.Controls.Notifications
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public class Notification : INotification, 
	INotifyPropertyChanged
Inheritance
Object    Notification
Implements
INotification, INotifyPropertyChanged

Remarks

This class represents a notification that can be displayed either in a window using WindowNotificationManager or by the host operating system (to be implemented).

Constructors

Notification Initializes a new instance of the Notification class.
Notification(String, String, NotificationType, NullableTimeSpan, Action, Action) Initializes a new instance of the Notification class.

Properties

Expiration Gets the expiration time of the notification after which it will automatically close. If the value is Zero then the notification will remain open until the user closes it.
Message Gets the notification message.
OnClick Gets an Action to be run when the notification is clicked.
OnClose Gets an Action to be run when the notification is closed.
Title Gets the Title of the notification.
Type Gets the NotificationType of the notification.

Methods

Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
OnPropertyChanged(String) 
ToStringReturns a string that represents the current object.
(Inherited from Object)

Events

See Also