[Expand]General Information
[Collapse]WinForms Controls
 [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]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Map Control
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Collapse]Form Layout Managers
    Side Panel
   [Expand]Layout and Data Layout Controls
   [Expand]Tabbed MDI Manager
    Tab Control
   [Collapse]Wizard Control
    [Expand]Product Information
      Page Layout
      Welcome Page
      Interior Page
      Completion Page
      Page Events
      Conditional Navigation
    Workspace Manager
  [Expand]Navigation Controls
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Sunburst 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]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

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.


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

Is this topic helpful?​​​​​​​