mirror of
https://github.com/PrismLibrary/Prism.git
synced 2026-10-29 13:38:03 +08:00
25 lines
570 B
C#
25 lines
570 B
C#
using Prism.Dialogs;
|
|
|
|
namespace HelloWorld.Dialogs
|
|
{
|
|
public class NotificationDialogViewModel : DialogViewModelBase
|
|
{
|
|
private string _message;
|
|
public string Message
|
|
{
|
|
get { return _message; }
|
|
set { SetProperty(ref _message, value); }
|
|
}
|
|
|
|
public NotificationDialogViewModel()
|
|
{
|
|
Title = "Notification";
|
|
}
|
|
|
|
public override void OnDialogOpened(IDialogParameters parameters)
|
|
{
|
|
Message = parameters.GetValue<string>("message");
|
|
}
|
|
}
|
|
}
|