Actipro Wizard - Windows Forms .NET Control
Page Sequencing
The Wizard control offers many ways to sequence pages.
Automatic Page Sequencing
Wizard features two modes of automatic page sequencing: Normal and BackStack.
When using Normal page sequencing,
pages in a wizard will be navigated through in the order that they appear in the wizard's Pages collection.
The wizard control handles all the Back and Next button processing so that no code is needed to get up and running
instantly.
BackStack page sequencing acts like Normal page sequencing when moving forward through the wizard.
However as page changes occur, the visited pages are stored on a stack. When the
Back button is pressed, the last page on the stack is popped off the stack and
revisited. This process continues until there are no pages left on the stack.
Programmatic Page Sequencing
In many cases, you will want to customize the order in which pages display.
An example is if you are on a data entry page and based on whether a checkbox is checked, you want the Next button
to navigate to a more detailed data entry page or directly to a results page.
The Wizard control provides events for doing this.
There are two methods for manually controlling page sequence.
Page sequencing may be controlled in the high-level NextButtonClick and BackButtonClick events of the Wizard control.
Page sequencing may also be controlled in the NextButtonClick and BackButtonClick events of WizardPage controls.
When one of the above events is implemented for a WizardPage control, the associated event in the Wizard control
will not fire if the WizardPage is currently selected.
This option gives you both a high-level and low-level approach for handling page manual sequencing.
Page Validation
A useful feature when making a data entry wizard is page validation.
With page validation, you can use the BeforePageSelect event to ensure that proper data is entered on a page.
If it isn't, you can display a message to the user and can tell the wizard that page switching should not occur.
|