Using the Wizard control, one of my app's pages runs a validation process. After the user hits Next from this screen, if the user then hits Back, I would like to skip the validation screen and move back to the page before the validation.
Is there a way to ignore a page when the user hits Back, or is there a way on the Page_Enter or Page_Leave to find out which direction the user is progressing?
Thanks.
Comments: ** Comment from web user: BoucherS **
Is there a way to ignore a page when the user hits Back, or is there a way on the Page_Enter or Page_Leave to find out which direction the user is progressing?
Thanks.
Comments: ** Comment from web user: BoucherS **
Hi,
You can listen for the event "Previous" on the Wizard itself. Then set the CurrentPage to skip the validation page :
```
private void Wizard_Previous( object sender, Toolkit.Core.CancelRoutedEventArgs e )
{
Xceed.Wpf.Toolkit.Wizard wizard = sender as Xceed.Wpf.Toolkit.Wizard;
if( wizard != null )
{
if( wizard.CurrentPage == wizard.Items[ 3 ] )
{
wizard.CurrentPage = wizard.Items[ 2 ] as WizardPage;
}
}
}
```