Share via


WizardPage.CanNavigatePrevious Property

Definition

When overridden in a derived class, gets a value indicating whether the user can move to the previous wizard page.

protected public:
 virtual property bool CanNavigatePrevious { bool get(); };
protected internal virtual bool CanNavigatePrevious { get; }
member this.CanNavigatePrevious : bool
Protected Friend Overridable ReadOnly Property CanNavigatePrevious As Boolean

Property Value

true if the user can move to the previous page; otherwise, false.

Examples

The following example demonstrates the CanNavigatePrevious property. This code example is part of a larger example provided for the WizardPage class.

// This is the modificationpage page. You can navigate to the previous page.
protected override bool CanNavigatePrevious
{
    get
    {
        return true;
    }
}

Remarks

This property gets a value of true if the wizard contains a previous wizard page to move to; it gets a value of false if the current page is the first wizard page. If the user has not completed all elements in the page, or the current page is the first wizard page, this property should get a value of false. Check this property before you call the OnPrevious method to ensure that a move is enabled. A value of true enables the Previous button in the wizard form.

Applies to

See also