WizardModel Class
The WizardModel is the base class for a multi-step wizard.
Namespace: Microsoft.Practices.EnterpriseLibrary.Configuration.Design
Assembly: Microsoft.Practices.EnterpriseLibrary.Configuration.DesignTime (in Microsoft.Practices.EnterpriseLibrary.Configuration.DesignTime.dll)
Syntax
'Declaration
Public MustInherit Class WizardModel _
Implements INotifyPropertyChanged
public abstract class WizardModel : INotifyPropertyChanged
public ref class WizardModel abstract : INotifyPropertyChanged
public abstract class WizardModel implements INotifyPropertyChanged
Remarks
The WizardModel is used in conjunction with IWizardStep items to gather data from the user and apply the changes. Inheritors of WizardModel can add IWizardStep (or an instance the convenience class WizardStep) using the AddStep(IWizardStep) method. The wizard will start with the CurrentStep oriented to the first IWizardStep. WizardView provides a view over WizardModel and takes advantage of siting each step in a section of the view as well as connecting to the various commands offered by the wizard (NextCommand, PreviousCommand, FinishCommand).
Examples
public class MyWizard : WizardModel { public MyWizard(IUIServiceWpf uiService) : base(uiService) { AddStep(new FirstStep()); AddStep(new SecondStep()); } public override Title { get { return "My Wizard"; } } }
Inheritance Hierarchy
System.Object
Microsoft.Practices.EnterpriseLibrary.Configuration.Design.WizardModel
Microsoft.Practices.EnterpriseLibrary.Configuration.Design.Wizard.LogExceptionsToDatabase
See Also
Microsoft.Practices.EnterpriseLibrary.Configuration.Design Namespace