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

RadWindow from XAML

3 Answers 125 Views
Window
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 11 Sep 2008, 06:19 PM
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

3 Answers, 1 is accepted

Sort by
0
Hristo Borisov
Telerik team
answered on 15 Sep 2008, 06:54 AM
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.
0
John
Top achievements
Rank 1
answered on 29 Oct 2008, 06:10 PM
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.
0
Hristo Borisov
Telerik team
answered on 30 Oct 2008, 12:30 PM
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.
Tags
Window
Asked by
John
Top achievements
Rank 1
Answers by
Hristo Borisov
Telerik team
John
Top achievements
Rank 1
Share this question
or