Browse Source

Fix notification type definition

pull/12103/head
Dmitry Zhutkov 3 years ago
parent
commit
1be3f9de5b
  1. 2
      src/Avalonia.Controls/Notifications/NotificationCard.cs

2
src/Avalonia.Controls/Notifications/NotificationCard.cs

@ -39,7 +39,7 @@ namespace Avalonia.Controls.Notifications
this.GetObservable(ContentProperty) this.GetObservable(ContentProperty)
.Subscribe(x => .Subscribe(x =>
{ {
if (x is Notification notification) if (x is INotification notification)
{ {
switch (notification.Type) switch (notification.Type)
{ {

Loading…
Cancel
Save