2017-09-14 69 views
0

嗨,我試圖使用嚮導控制。 我想在一個嚮導控件的頁面中調用我的usercontrol。如何在xceed嚮導控件中添加wpf 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> 

回答

0

已解決。這很簡單:

myusercontrol my = new myusercontrol(); 
Page1.Content = my; 
相關問題