Producto ID: 107589

Wpf | Dialogs

private void Save()

public MainViewModel(IDialogService dialogService) WPF Dialogs

Progress Dialog public partial class ProgressDialog : Window SaveCommand = new RelayCommand(_ =&gt

_dialogService = dialogService; SaveCommand = new RelayCommand(_ => Save()); EditItemCommand = new RelayCommand(_ => EditItem()); EditItemCommand = new RelayCommand(_ =&gt

// Basic alert MessageBox.Show("File saved successfully!"); // With title and buttons MessageBoxResult result = MessageBox.Show( "Do you want to save changes?", "Unsaved Changes", MessageBoxButton.YesNoCancel, MessageBoxImage.Warning);

// Generic dialog window public partial class GenericDialog<T> : Window

if (result == MessageBoxResult.Yes)

private void Save()

public MainViewModel(IDialogService dialogService)

Progress Dialog public partial class ProgressDialog : Window

_dialogService = dialogService; SaveCommand = new RelayCommand(_ => Save()); EditItemCommand = new RelayCommand(_ => EditItem());

// Basic alert MessageBox.Show("File saved successfully!"); // With title and buttons MessageBoxResult result = MessageBox.Show( "Do you want to save changes?", "Unsaved Changes", MessageBoxButton.YesNoCancel, MessageBoxImage.Warning);

// Generic dialog window public partial class GenericDialog<T> : Window

if (result == MessageBoxResult.Yes)