Custom WizardPage

2 posts, 0 answers
  1. Mikel
    Mikel avatar
    21 posts
    Member since:
    Feb 2014

    Posted 30 Sep 2015 Link to this post

    Hi,

    I am trying to develop a wizard. I am trying to inherit a class from WizardPage for make custom WizardPages, and I make this

    public partial class My_WizardPage : WizardPage
    {
        public My_WizardPage()
        {
            
        }
    }

    And Xaml

     

    <telerik:WizardPage
        x:Class="​My_WizardPage"
        mc:Ignorable="d"
        d:DesignHeight="300" d:DesignWidth="300"
        ButtonsVisibilityMode="Next"
        >
        <mycontent/>
    </telerik:WizardPage>

    That work at Design time, I cant see the view, but if I add this custom page to WizardPages collection  from RadWizard nothing happend.

     

    this.Wizard = pWizard;
     
    WizardPage page = new My_WizardPage();
    page.DataContext = this;(vm)
     
    this.Wizard.WizardPages.Add(page);
     
    this.Wizard.SelectedPageIndex = 0;

     

    What am I doing wrong?

     

    Regards!!

  2. Yoan
    Admin
    Yoan avatar
    1068 posts

    Posted 05 Oct 2015 Link to this post

    Hi,

    You can use WizardPage's ContentTemplate property. I am sending you a sample project that demonstrates this approach.

    I hope it helps.

    Regards,
    Yoan
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top