Example #1
0
 private bool ShowDialog(NotificationViewModel vm)
 {
     var v = new NotificationView(vm);
     v.Owner = Application.Current.MainWindow;
     return (bool)v.ShowDialog();
 }
 public NotificationView(NotificationViewModel vm)
 {
     InitializeComponent();
     vm.Dlg = this;
     DataContext = vm;
 }