Skip to content

DialogAwareViewModel class

Base class for view models shown as modal dialogs by IDialogService. On top of WindowAwareViewModel it builds the dialog buttons when the window opens.

public abstract class DialogAwareViewModel : WindowAwareViewModel, IDialogAwareViewModel

Public Members

name description
ButtonsSource { get; set; }
CloseDialogCommand { get; }
CloseDialog() Closes the dialog with Cancel, as if the user had cancelled it. The generated CloseDialogCommand property makes this available to bindings.

Remarks

Override CreateButtons to define the footer buttons. For the common OK/Cancel pair, derive from OkCancelDialogAwareViewModel instead.

See Also