Table of Contents

Class WizardPageViewModel

Namespace
Acuit.Pinpoint.Windows.Controls
Assembly
Acuit.Pinpoint.Windows.dll

The base class for view models used with the WizardPage control.

public abstract class WizardPageViewModel : ExtendedNotificationObject, INotifyPropertyChanged, IDataErrorInfo
Inheritance
NotificationObject
WizardPageViewModel
Implements
Inherited Members
NotificationObject.PropertyChanged

Constructors

WizardPageViewModel(WizardViewModel)

Initializes a new instance of the WizardPageViewModel class.

protected WizardPageViewModel(WizardViewModel wizard)

Parameters

wizard WizardViewModel

The 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

WizardPageViewModel

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

string

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

bool

IsValid

Gets whether this page is valid. The next button will be disabled if this is false.

public virtual bool IsValid { get; }

Property Value

bool

this[string]

Gets the error message for the property with the given name.

public string this[string columnName] { get; }

Parameters

columnName string

Property Value

string

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

int

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

WizardViewModel

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()