public bool? ShowDialog(DialogParams data) { var win = new WindowDialog { DataContext = data, WindowStyle = WindowStyle.None, Owner = Application.Current.MainWindow, WindowStartupLocation = WindowStartupLocation.CenterOwner, Opacity = 0.8 }; return win.ShowDialog(); }
private void DisplayUserMessage(DialogParams data) { _dialogService.ShowDialog(data); }