I've built a wizard of several pages using Xceed WPF Toolkit's Wizard Control, and I need the program to know what page is currently active, in order to be able to determine the necessary steps.
I'm trying to bind CurrentPage
to the ViewModel, as follows:
XAML:
<xctk:Wizard CurrentPage="{Binding CurrentStep, Mode=TwoWay}">
<xctk:WizardPage Name="Import">
...
</xctk:WizardPage>
...
</xctk:Wizard>
ViewModel:
public WizardPage CurrentStep { get; set; }
The problem is that CurrentStep
always returns Null
and the wizard just shows a blank page.
What needs to be done in order to have CurrentPage
return the active wizard page using MVVM?