how to add custom button in wizard?
example: First-page-button
when click on this button go to intro page
thank you
Comments: ** Comment from web user: BoucherS **
Hi,
If you want to display a button that when clicked starts the Wizard, you can use the button's click event to create a window containing the wizard. An example of this behavior is available in the "LiveExplorer App" that can be found on this page : https://wpftoolkit.codeplex.com/.
If you want the button to be part of the wizard, Here's how you could do it :
```
<xctk:Wizard x:Name="_wizard"
NextButtonVisibility="Collapsed"
BackButtonVisibility="Collapsed"
HelpButtonVisibility="Collapsed"
CancelButtonVisibility="Collapsed"
FinishButtonVisibility="Collapsed">
<xctk:WizardPage Title="Welcome to my Wizard"
Description="This Wizard will walk you though how to do something.">
<Button Content="FirstPageButton"
Width="150"
Height="25"
Click="Button_Click" />
</xctk:WizardPage>
<xctk:WizardPage PageType="Interior"
Title="Page 1"
CanSelectPreviousPage="False"
Description="This is the first page in the process." />
<xctk:WizardPage PageType="Interior"
Title="Page 2"
Description="This is the second page in the process" />
<xctk:WizardPage PageType="Interior"
Title="Last Page"
Description="This is the last page in the process"
CanFinish="True" />
</xctk:Wizard>
private void Button_Click( object sender, RoutedEventArgs e )
{
_wizard.CurrentPage = _wizard.Items[ 1 ] as WizardPage;
_wizard.NextButtonVisibility = Visibility.Visible;
_wizard.BackButtonVisibility = Visibility.Visible;
_wizard.HelpButtonVisibility = Visibility.Visible;
_wizard.CancelButtonVisibility = Visibility.Visible;
_wizard.FinishButtonVisibility = Visibility.Visible;
}
```