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

Add WizardPages to radwizard at runtime?

2 Answers 90 Views
Wizard
This is a migrated thread and some comments may be shown as answers.
live cooking demonstration
Top achievements
Rank 1
live cooking demonstration asked on 01 Jun 2017, 04:55 AM
I am trying to add these pages to the main radwizard element in my window. When I try to call radWizard.WizardPages.Add (wizardpage) at runtime, radWizard is null! What event can I subscribe to when the radWizard element is instantiated?

2 Answers, 1 is accepted

Sort by
0
Accepted
Yoan
Telerik team
answered on 05 Jun 2017, 09:13 AM
Hello,

You can use its Loaded event like so:
private void myWizard_Loaded(object sender, RoutedEventArgs e)
        {
            (sender as RadWizard).WizardPages.Add(new WizardPage() { Header = "0" });
        }

Please let me know how this works for you.

Regards,
Yoan
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
live cooking demonstration
Top achievements
Rank 1
answered on 06 Jun 2017, 12:50 AM
Thank you, yoan. The System.Windows.Loaded event is fulfilling my objective. Not sure why I didn't notice it. :P
Tags
Wizard
Asked by
live cooking demonstration
Top achievements
Rank 1
Answers by
Yoan
Telerik team
live cooking demonstration
Top achievements
Rank 1
Share this question
or