RadWindow from XAML

4 posts, 0 answers
  1. John
    John avatar
    3 posts
    Member since:
    Aug 2008

    Posted 11 Sep 2008 Link to this post

    I want to build my forms in XAML using the graphical design tools, then show the window at run time, as needed.

    Can I build the windows in XAML an then pop up the window as designed, and as needed?

    I will need to pop up multiple windows.  Eventually, I want them to come up as the content of a tabset.  I will need to change the content of the tab dynamically.

    John Loper
  2. Hristo Borisov
    Admin
    Hristo Borisov avatar
    298 posts

    Posted 15 Sep 2008 Link to this post

    Hello John,

    If I correctly understand your goal, you want to design a RadWindow in XAML and then manipulate the window using code-behind logic.
    First of all, you can design RadWindow using the Microsoft Expression Blend. To access the designed RadWindow from the code-behind logic, you should explicitly set the x:Name property in the XAML declaration.

    Please feel free to contact me for further assistance. 

    Sincerely yours,
    Hristo Borisov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. John
    John avatar
    3 posts
    Member since:
    Aug 2008

    Posted 29 Oct 2008 Link to this post

    What I really want to do is nothing more than to load a predefied XAML file into a telerik window.  The XAML will be a user control and I want to add it to the current desktop.
  4. Hristo Borisov
    Admin
    Hristo Borisov avatar
    298 posts

    Posted 30 Oct 2008 Link to this post

    Hi John,

    You can easily do that, just create your own user control and assign it to the Content property of RadWindow. To manipulate the parent RadWindow from the user control logic, you must call the static method GetParentRadWindow which returns a reference to the RadWindow by invoking it like this:

    RadWindow.GetParentRadWindow(this) 

    The "this" parameter refers to your user control class. For further assistance you can have a look at our online demo Window and User Control that is part of the online demos http://demos.telerik.com/silverlight/ or project Examples that comes with the binaries. If you have any other questions, feel free to contact me as soon as possible. Thank you for your feedback.

    Kind regards,
    Hristo Borisov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top