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
112 stars 32 forks source link

Backward navigation? #69

Closed dahall closed 5 years ago

dahall commented 5 years ago

Hi,

I am using Aero Wizard and I have developed a 6 page wizard in which the order in which pages are traversed by a user is not predetermined, the order is determined dynamically based on inputs from the user.

I have the navigation working fine in the forward direction. After the 'next' button is hit the various Commit handlers set NextPage to the appropriate value.

However I am having trouble with backwards navigation. After the 'back' button is hit, i have a handler for the Rollback event but i do not know what I need to do to cause my desired page to become active.

Any help you could offer would be appreciated.

Originally posted: 2016-04-03T13:35:41

dahall commented 5 years ago

Backwards navigation is handled by a stack that keeps track of the pages traversed and automatically, after handling the Rollback event, will go to the previous page. Let me know if this is not your experience.

Originally posted: 2016-08-31T09:02:45

dahall commented 5 years ago

I also have a situation were I 3x pages "Criteria -> Progress -> Results" in the wizard I have created. If the user is unhappy with the result, hitting Back should take them from the results to criteria page. Instead, the wizard steps back to progress page.

It would be nice for the page have a "CanRollBackTo" property so that can be ignored when traversing the stack.

Originally posted: 2016-10-04T06:53:38

dahall commented 5 years ago

UPDATE

For a work around I tried using the wizard page Suppress property (setting it to false on the criteria page and then when the progress page is initialised setting suppress to true). This nearly works but results in clicking the back button twice to get to the criteria page :-(

Originally posted: 2016-10-04T07:08:18

dahall commented 5 years ago

Check to make sure the Next property is not set on any of the pages. With no settings that expressly tell the framework which is next or prior, it should consistently go to the next, non-suppressed page when Next is clicked and go back to the last page seen when the Back button is clicked.

Originally posted: 2016-10-13T07:54:04