From 1be3f9de5bbfb338d960f2da42e1c2fc0c9f857c Mon Sep 17 00:00:00 2001 From: Dmitry Zhutkov Date: Sat, 8 Jul 2023 12:46:57 +0500 Subject: [PATCH] Fix notification type definition --- src/Avalonia.Controls/Notifications/NotificationCard.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Avalonia.Controls/Notifications/NotificationCard.cs b/src/Avalonia.Controls/Notifications/NotificationCard.cs index 705d40380e..7d5b6cc0ca 100644 --- a/src/Avalonia.Controls/Notifications/NotificationCard.cs +++ b/src/Avalonia.Controls/Notifications/NotificationCard.cs @@ -39,7 +39,7 @@ namespace Avalonia.Controls.Notifications this.GetObservable(ContentProperty) .Subscribe(x => { - if (x is Notification notification) + if (x is INotification notification) { switch (notification.Type) {