This is a migrated thread and some comments may be shown as answers.

Custom WizardPage

1 Answer 128 Views
Wizard
This is a migrated thread and some comments may be shown as answers.
Mikel
Top achievements
Rank 1
Mikel asked on 30 Sep 2015, 02:24 PM
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!!

1 Answer, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 05 Oct 2015, 11:54 AM
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
Tags
Wizard
Asked by
Mikel
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Share this question
or