【发布时间】:2018-02-02 17:39:01
【问题描述】:
我已经使用Xceed WPF Toolkit's Wizard Control 构建了一个包含多个页面的向导,我需要程序知道哪个页面当前处于活动状态,以便能够确定必要的步骤。
我正在尝试将CurrentPage绑定到ViewModel,如下:
XAML:
<xctk:Wizard CurrentPage="{Binding CurrentStep, Mode=TwoWay}">
<xctk:WizardPage Name="Import">
...
</xctk:WizardPage>
...
</xctk:Wizard>
视图模型:
public WizardPage CurrentStep { get; set; }
问题是CurrentStep 总是返回Null 并且向导只显示一个空白页。
为了让CurrentPage 使用 MVVM 返回活动向导页面需要做什么?
【问题讨论】:
标签: c# wpf mvvm wizard wpftoolkit