using System; using System.Linq; using Avalonia.Reactive; using Avalonia.Controls.Metadata; using Avalonia.Interactivity; using Avalonia.LogicalTree; namespace Avalonia.Controls.Notifications { /// /// Control that represents and displays a notification. /// [PseudoClasses(":error", ":information", ":success", ":warning")] public class NotificationCard : ContentControl { private bool _isClosing; static NotificationCard() { CloseOnClickProperty.Changed.AddClassHandler