Skip to content

Instantly share code, notes, and snippets.

@peterfoot
Created July 14, 2021 11:29
Show Gist options
  • Save peterfoot/c367224f201e178488cecd99110f5494 to your computer and use it in GitHub Desktop.
Save peterfoot/c367224f201e178488cecd99110f5494 to your computer and use it in GitHub Desktop.
MvvmLight style NotificationMessage<T> for Microsoft.Toolkit.Mvvm
namespace Microsoft.Toolkit.Mvvm.Messaging.Messages
{
public sealed class NotificationMessage<T>
{
public NotificationMessage(T content, string notification)
{
Content = content;
Notification = notification;
}
public T Content { get; }
public string Notification { get; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment