Removing page from stack

Wizard for WPF Forum

Posted 14 years ago by wpf.acp
Version: 9.1.0505
Avatar
Please consider the following scenario. Wizard starts with page A which allows branching towards pages B and C. Both B and C lead to D which shows a progress of some kind. D leads to E which is a "finish" page.

We want page D not to be added to page stack so that if one backs from page E, one ends up on B or C.

We cannot use WizardPage.PreviousPage property on E because a path to page E can be either from B or C.

Unless I am missing something obvious, could you please add a property on WizardPage e.g. AddToStack with a default value of True? This won't break current behavior and will allow for exactly the scenario described above.

I have tried a programmatic workaround by setting PreviousPage on E using (Un)Selected events but this didn't work. Besides, even if it worked the page from PreviousPage would be added to the stack instead of the desired behavior which is to pop the stack.

Comments (1)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Ok, we'll add that to the TODO list.

The workaround for now is to use Wizard.PageSequenceType = Normal and in the WizardPage.Unselecting event, set the PreviousPage appropriately.


Actipro Software Support

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.