Add WizardPages to radwizard at runtime?

3 posts, 1 answers
  1. live cooking demonstration
    live cooking demonstration avatar
    6 posts
    Member since:
    May 2017

    Posted 31 May Link to this post

    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. Answer
    Yoan
    Admin
    Yoan avatar
    1128 posts

    Posted 05 Jun Link to this post

    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.
  3. live cooking demonstration
    live cooking demonstration avatar
    6 posts
    Member since:
    May 2017

    Posted 05 Jun in reply to Yoan Link to this post

    Thank you, yoan. The System.Windows.Loaded event is fulfilling my objective. Not sure why I didn't notice it. :P
Back to Top