Class WizardViewModel
The base class for view models used with the Wizard control.
public abstract class WizardViewModel : DialogViewModel, INotifyPropertyChanged, IWithDialogResult, IDataErrorInfo
- Inheritance
-
NotificationObjectWizardViewModel
- Implements
- Inherited Members
-
NotificationObject.PropertyChanged
Constructors
WizardViewModel()
Initializes a new instance of the WizardViewModel class.
protected WizardViewModel()
Properties
CanMoveBackPage
Gets whether the back button should be enabled.
public bool CanMoveBackPage { get; }
Property Value
CanMoveNextPage
Gets whether the next button should be enabled.
public bool CanMoveNextPage { get; }
Property Value
CurrentPage
Gets or sets the currently-displayed wizard page.
public WizardPageViewModel CurrentPage { get; set; }
Property Value
Error
Gets an error message indicating what is wrong with this object.
public string Error { get; }
Property Value
Remarks
This provides a default implementation for IDataErrorInfo.
IsLastPage
Gets whether the current page is the last wizard page.
public bool IsLastPage { get; }
Property Value
this[string]
Gets the error message for the property with the given name.
public string this[string columnName] { get; }
Parameters
columnName
string
Property Value
Remarks
This provides a default implementation for IDataErrorInfo that uses WPF attribute-based validation.
MoveBackPage
Gets a command the handles the wizard's back button click.
public DelegateCommand MoveBackPage { get; }
Property Value
- DelegateCommand
MoveNextPage
Gets a command the handles the wizard's next button click.
public DelegateCommand MoveNextPage { get; }
Property Value
- DelegateCommand
Pages
Gets the collection of wizard pages.
public ObservableCollection<WizardPageViewModel> Pages { get; }
Property Value
Methods
OnMoveBackPage()
A method that handles a request to move to the previous page.
public virtual void OnMoveBackPage()
OnMoveNextPage()
A method that handles a request to move to the next page.
public virtual void OnMoveNextPage()