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)
- C#
- VB
- F#
public class Notification : INotification,
INotifyPropertyChanged
Public Class Notification
Implements INotification, INotifyPropertyChanged
type Notification =
class
interface INotification
interface INotifyPropertyChanged
end
| 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, Nullable(TimeSpan), 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) |
| 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 |