Wpf Dialogs File

if (result == MessageBoxResult.Yes)

// Save logic

var windowType = GetWindowTypeForViewModel(viewModel.GetType()); var window = (Window)Activator.CreateInstance(windowType); window.DataContext = viewModel; window.Owner = Application.Current.MainWindow; return window.ShowDialog() == true ? (T)viewModel : null; WPF Dialogs

var dialog = new MyDialog(); if (dialog.ShowDialog() == true)

var vm = new EditItemViewModel(SelectedItem); var result = _dialogService.ShowDialog<EditItemViewModel>(vm); if (result != null) SelectedItem = result.Item; if (result == MessageBoxResult

for (int i = 0; i < 100; i++)

if (_dialogService.ShowConfirmation("Save changes?", "Confirm")) // Save logic var window = (Window)Activator.CreateInstance(windowType)

var progressDialog = new ProgressDialog("Processing..."); progressDialog.Show();

TELL ME MORE

Contact us today with any questions or use our easy and convenient online booking.

Follow Us: