Hi,
How about modifying the currentPage when the button Next is pressed :
How about modifying the currentPage when the button Next is pressed :
<xctk:Wizard x:Name="_wizard"
FinishButtonClosesWindow="True"
Help="OnWizardHelp"
Next="Wizard_Next">
<xctk:WizardPage x:Name="_page1"
Title="Welcome to my Wizard"
Description="This Wizard will walk you though how to do something." />
<xctk:WizardPage x:Name="_page2"
PageType="Interior"
Title="Page 1"
Description="This is the first page in the process." />
<xctk:WizardPage x:Name="_page3"
PageType="Interior"
Title="Page 2"
Description="This is the second page in the process" />
<xctk:WizardPage x:Name="_page4"
PageType="Interior"
Title="Last Page"
Description="This is the last page in the process"
CanFinish="True" />
</xctk:Wizard>
private void Wizard_Next( object sender, Toolkit.Core.CancelRoutedEventArgs e )
{
var wizard = sender as Xceed.Wpf.Toolkit.Wizard;
if( wizard != null )
{
if( wizard.CurrentPage == _page1 )
{
//wizard.CurrentPage = _page3;
//or
wizard.CurrentPage = wizard.Items[ 2 ] as WizardPage;
}
}
}