Export (0) Print
Expand All

CanNavigateNext Property

Gets a value indicating whether the user can move to the next wizard page.

Namespace:  Microsoft.Web.Management.Client.Win32
Assembly:  Microsoft.Web.Management (in Microsoft.Web.Management.dll)

protected internal virtual bool CanNavigateNext { get; }

Property Value

Type: System..::..Boolean
true if the user can move to the next page; otherwise, false.

This property should get a value of true if the wizard contains another page to move to and the user has completed all required elements in the current page. If the user has not completed all elements in the current page, or the current page is the last wizard page, this property should get a value of false. Check this property before you call the OnNext method to ensure that a move is enabled. A value of true enables the Next button in the wizard form.

The following example demonstrates the CanNavigateNext property. In this example, the CanNavigateNext property is initially set to false; however, once a user is validated, the property value is set to true, enabling the Cancel button. This code example is part of a larger example provided for the WizardPage class.

// This is the login page. You can navigate to the next page,
// after the user is validted. Set initially to false. 
protected override bool CanNavigateNext
{
    get
    {
        return _canNavigateNext;
    }
}


Community Additions

ADD
Show:
© 2015 Microsoft