Class DialogViewModel
- Namespace
- Acuit.Pinpoint.Workstation.Windows
- Assembly
- Acuit.Pinpoint.Workstation.Abstractions.dll
Base class for dialog box view models.
public class DialogViewModel : ObservableObject, INotifyPropertyChanged, INotifyPropertyChanging, IDialogAware
- Inheritance
-
DialogViewModel
- Implements
- Inherited Members
Constructors
DialogViewModel()
public DialogViewModel()
Properties
AcceptCommand
Gets an IRelayCommand instance wrapping Accept().
public IRelayCommand AcceptCommand { get; }
Property Value
CancelCommand
Gets an IRelayCommand instance wrapping Cancel().
public IRelayCommand CancelCommand { get; }
Property Value
Methods
Accept()
Raises CloseRequested with a result of true.
[RelayCommand]
protected virtual void Accept()
Cancel()
Raises CloseRequested with a result of false.
[RelayCommand]
protected virtual void Cancel()
Events
CloseRequested
Requests that the dialog be closed.
public event EventHandler<CloseRequestedEventArgs>? CloseRequested