Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NextPage does 2 steps at once #101

Open
a-einstein opened this issue Nov 30, 2023 · 1 comment
Open

NextPage does 2 steps at once #101

a-einstein opened this issue Nov 30, 2023 · 1 comment

Comments

@a-einstein
Copy link

a-einstein commented Nov 30, 2023

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
Copy link
Author

a-einstein commented Nov 30, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant