dahall / AeroWizard

Library for easy creation of custom and Aero Wizards. Aero Wizard strictly follows Microsoft guidelines and uses Visual Styles to get visual theming.
MIT License
114 stars 31 forks source link

NextPage does 2 steps at once #101

Open a-einstein opened 1 year ago

a-einstein commented 1 year ago

Calling WizardControl.NextPage(wizardPage, true) results in opening wizardPage, but also in an inmediate continuation to the page following that in the WizardControl.Pages, which may even cause the entire wizard to finish.

Strangely, this second next doesn't fire the Commit event. But is does fire a second SelectedPageChanged.

This breaks my navigation. I currently have no way of preventing it.

This is a try-out in which I have already put considerable effort. This may be the breaking problem.

Please react to this issue.

a-einstein commented 1 year ago

Update.

The way to interrupt this behaviour is to set WizardPageConfirmEventArgs.Cancel = true in the Commit handler. Which makes sense, but is a matter of interprestation.