Browse Source

Merge pull request #12103 from Onebeld/master

Fix NotificationCard to determine the type of notification from an inherited INotification object
pull/12713/head
Max Katz 3 years ago
committed by GitHub
parent
commit
acff61d8ee
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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)
.Subscribe(x =>
{
if (x is Notification notification)
if (x is INotification notification)
{
switch (notification.Type)
{

Loading…
Cancel
Save