Wizard Buttons
The wizard control provides the following buttons out of the box:
- Next – will trigger the Next event and will navigate to the next wizard page
- Previous – will trigger the Previous event and will navigate to the previous wizard page
- Cancel – will trigger the Cancel event
- Finish – will trigger the Finish event
- Help – will trigger the Help event
It is possible to change the default content of each button by using the NextButtonContent, PreviousButtonContent, CancelButtonContent, FinishButtonContent and HelpButtonContent properties of the wizard page.
Control which buttons to be visible per page
In order to control which buttons to be visible on a specific page you can use the ButtonsVisibilityMode flag enumeration property of the wizard page. The enumeration provides the following values:
- None – no buttons are visible
- Previous – shows the Previous button
- Next – shows the Next button
- Cancel – shows the Cancel button
- Finish – shows the Finish button
- Help – shows the Help button
- All – shows all available buttons
Here is an example of setting the ButtonsVisibilityMode property of the WizardPage to show several buttons (Example 1).
Example 1: Setting the ButtonsVisibilityMode property of the WizardPage manually in XAML
<telerik:RadWizard x:Name="radWizard" >
<telerik:RadWizard.WizardPages>
<telerik:WizardPage ButtonsVisibilityMode="Help,Next,Cancel"/>
</telerik:RadWizard.WizardPages>
</telerik:RadWizard>
Control which buttons to be active per page
In order to control which buttons to be active on a specific page you can use the following boolean properties:
- AllowNext - indicates whether the Next button is enabled.
- AllowPrevious - indicates whether the Previous button is enabled.
- AllowCancel - indicates whether the Cancel button is enabled.
- AllowFinish - indicates whether the Finish button is enabled.
- AllowHelp - indicates whether the Help button is enabled.
Here is an example of setting the AllowHelp property to a WizardPage (Example 2):
Example 2: Setting the AllowHelp property of the WizardPage
<telerik:RadWizard x:Name="radWizard" >
<telerik:RadWizard.WizardPages>
<telerik:WizardPage AllowHelp="True" />
</telerik:RadWizard.WizardPages>
</telerik:RadWizard>
Commands
The button actions are implemented via commands. To customize an action, override the corresponding command. Read more about the commands in the corresponding help article.