Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Collapse]Form Layout Managers
    Side Panel
   [Expand]Layout Manager
   [Expand]Tabbed MDI Manager
    Tab Control
   [Collapse]Wizard Control
    [Expand]Product Information
    [Collapse]Fundamentals
      Page Layout
      Buttons
      Welcome Page
      Interior Page
      Completion Page
      Page Events
      Conditional Navigation
    Workspace Manager
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Conditional Navigation

The XtraWizard control provides the WizardControl.SelectedPageChanging event, which enables you to implement conditional (not linear) navigation. To do this, you should handle the WizardControl.SelectedPageChanging event, which is raised when a new wizard page is about to be selected.

By default, when an end-user clicks the Next or Back button, the XtraWizrad control selects the next or previous page within its WizardControl.Pages collection. This new page is returned by the event parameter's WizardPageChangingEventArgs.Page property. The previously active page is returned by the WizardPageChangedEventArgs.PrevPage property. To obtain in which direction a user navigates, use the WizardPageChangedEventArgs.Direction property.

If you don't desire the default behavior and want to select a specific page, all you have to do is to assign this page to the WizardPageChangingEventArgs.Page property.

Note

The full source code can be found in our WizardTourDemo shipped with the XtraWizard Suite.

How would you rate this topic?​​​​​​​