如何在xceed向导控件中添加wpf usercontrol?

时间:2017-09-14 08:47:57

标签: xceed

您好我尝试使用向导控件。 I' d喜欢在向导控件页面中调用我的usercontrol。

<xctk:Wizard FinishButtonClosesWindow="True">
        <xctk:WizardPage x:Name="IntroPage" 
                               Title="Welcome to my Wizard"
                               Description="This Wizard will walk you though how to do something." />
        <xctk:WizardPage x:Name="Page1" PageType="Interior"
                               Title="Page 1"
                               Description="This is the first page in the process."
                               NextPage="{Binding ElementName=Page2}"
                               PreviousPage="{Binding ElementName=IntroPage}"/>
        <xctk:WizardPage x:Name="Page2" PageType="Interior"
                               Title="Page 2"
                               Description="This is the second page in the process"/>
        <xctk:WizardPage x:Name="LastPage" PageType="Interior"
                               Title="Last Page"
                               Description="This is the last page in the process"
                               CanFinish="True"/>
    </xctk:Wizard>

1 个答案:

答案 0 :(得分:0)

这已经解决了。这很简单:

myusercontrol my = new myusercontrol();
Page1.Content = my;