Skip to main content

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)

public class Notification : INotification, 
INotifyPropertyChanged
View Source
InheritanceObject → Notification
ImplementsINotification, 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, Nullable(TimeSpan), Action, Action)Initializes a new instance of the Notification class.

Properties

ExpirationGets 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.
MessageGets the notification message.
OnClickGets an Action to be run when the notification is clicked.
OnCloseGets an Action to be run when the notification is closed.
TitleGets the Title of the notification.
TypeGets the NotificationType of the notification.

Methods

Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize()Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCode()Serves as the default hash function.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
MemberwiseClone()Creates a shallow copy of the current Object.
(Inherited from Object)
OnPropertyChanged(String) 
ToString()Returns a string that represents the current object.
(Inherited from Object)

Events

PropertyChanged 

See Also

Reference

Avalonia.Controls.Notifications Namespace