Class WizardPageViewModel
The base class for view models used with the WizardPage control.
public abstract class WizardPageViewModel : ExtendedNotificationObject, INotifyPropertyChanged, IDataErrorInfo
- Inheritance
-
NotificationObjectWizardPageViewModel
- Implements
- Inherited Members
-
NotificationObject.PropertyChanged
Constructors
WizardPageViewModel(WizardViewModel)
Initializes a new instance of the WizardPageViewModel class.
protected WizardPageViewModel(WizardViewModel wizard)
Parameters
wizard
WizardViewModelThe wizard to which this wizard page belongs.
Properties
BackPage
Gets or sets the wizard page to which the back button should navigate.
public WizardPageViewModel BackPage { get; set; }
Property Value
Remarks
If this is null, the preceding page in the wizard's list of pages will be navigated to when the back button is clicked.
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.
IsNextButtonVisible
Gets whether the wizard's next button should be visible.
public virtual bool IsNextButtonVisible { get; }
Property Value
IsValid
Gets whether this page is valid. The next button will be disabled if this is false.
public virtual bool IsValid { 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.
ValidationErrorCount
Gets or sets the number of current validation errors for the controls on this page.
public int ValidationErrorCount { get; set; }
Property Value
Remarks
Only controls with NotifyOnValidationError=True in their bindings will contribute toward this count.
Wizard
Gets the wizard to which this wizard page belongs.
public WizardViewModel Wizard { get; }
Property Value
Methods
OnEnteredPage()
A method that gets called when this page becomes the current page. The default implementation does nothing.
protected virtual void OnEnteredPage()
OnExitedPage()
A method that gets called when this page becomes the current page. The default implementation does nothing.
protected virtual void OnExitedPage()
OnMoveBackPage()
A method that gets called when the back button is clicked. The default implementation navigates to BackPage, or the next page in the wizard's list of pages if BackPage is null.
protected virtual void OnMoveBackPage()
OnMoveNextPage()
A method that gets called when the next button is clicked. The default implementation navigates to the next page in the wizard's list of pages.
protected virtual void OnMoveNextPage()