Skip to content

Commit

Permalink
Merge pull request #12103 from Onebeld/master
Browse files Browse the repository at this point in the history
Fix NotificationCard to determine the type of notification from an inherited INotification object
  • Loading branch information
maxkatz6 authored Aug 29, 2023
2 parents 76e5274 + 1be3f9d commit acff61d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Avalonia.Controls/Notifications/NotificationCard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public NotificationCard()
this.GetObservable(ContentProperty)
.Subscribe(x =>
{
if (x is Notification notification)
if (x is INotification notification)
{
switch (notification.Type)
{
Expand Down

0 comments on commit acff61d

Please sign in to comment.