Closed 5cover closed 1 year ago
Hi,
Thank you for reporting this. This issue will be fixed in the next release : v4.6.
In the meantime, here's a fix you can implement. Go in file : Xceed.Wpf.Toolkit/Wizard/Implementation/Wizard.cs in method : OnItemsChanged and replace CurrentPage = Items[ 0 ] as WizardPage; with this.SetCurrentValue( Wizard.CurrentPageProperty, Items[ 0 ] as WizardPage );
This will not ovewrite the CurrentPage property when at startup the CurrentPage is null. Thanks
I have a wizard with a page (Page1) that starts a task when the Enter event is recieved. I want to go to the next page (Page2) automatically when the task is done.
Considering that I use the MVVM architecture for pages, I update the "Finished" property of the view model of Page1 accordingly:
I use a
DataTrigger
in the Wizard definition to update the current page when Finish is set to TrueIf I replace the CurrentPage setter with another setter, it works, so the trigger works.
{DynamicResource Page2}
returns a valid page, because it works if I do it in codebehind, like thisWhen the CurrentPage setter is executed, nothing happens and Page1 is still displayed.