WizardPage.CanNavigateNext Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value indicating whether the user can move to the next wizard page.
protected public:
virtual property bool CanNavigateNext { bool get(); };
protected internal virtual bool CanNavigateNext { get; }
member this.CanNavigateNext : bool
Protected Friend Overridable ReadOnly Property CanNavigateNext As Boolean
Property Value
true
if the user can move to the next page; otherwise, false
.
Examples
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;
}
}
Remarks
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.