Table of Contents

Class WizardViewModel

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

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

public abstract class WizardViewModel : DialogViewModel, INotifyPropertyChanged, IDataErrorInfo
Inheritance
NotificationObject
WizardViewModel
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

bool

CanMoveNextPage

Gets whether the next button should be enabled.

public bool CanMoveNextPage { get; }

Property Value

bool

CurrentPage

Gets or sets the currently-displayed wizard page.

public WizardPageViewModel CurrentPage { get; set; }

Property Value

WizardPageViewModel

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.

IsLastPage

Gets whether the current page is the last wizard page.

public bool IsLastPage { 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.

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

ObservableCollection<WizardPageViewModel>

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