Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

Commented Unassigned: Wizard: Best way to skip page on Back [20952]

$
0
0
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 **

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;
}
}
}
```


Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>