This is a migrated thread and some comments may be shown as answers.
radwindow inside raddock
2 Answers 30 Views
This is a migrated thread and some comments may be shown as answers.
frank
Top achievements
Rank 1
frank asked on 08 Sep 2011, 09:10 PM
Hi,

I am trying to add components dynamically inside a raddock control. Usercontrols and forms are ok but I cannot find the right trick to add a radwindow inside a raddock. When I add a radwindow to a raddock the content is not visible. i did find earlier comments on this issue but no clarification whether or not this is possible.

My simple question(s): (how) can this be done?

Thanks!

2 Answers, 1 is accepted

Sort by
0
Accepted
Yana
Telerik team
answered on 12 Sep 2011, 10:31 AM
Hello Frank,

You cannot place RadWindow directly in the XAML, the recommended approach is to create a user control with a root element RadWindow and open it from the Docking. Please check this help article which explains the approach in details.

All the best,
Yana
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
frank
Top achievements
Rank 1
answered on 13 Sep 2011, 08:01 PM
Hi Yana,

You got me on the right track!

What did not work:

radPane2.Content =  new PopupMessages(); // the radwindow

 


The solution:

StackPanel

thisPanel = new StackPanel();

PopupMessages window = new PopupMessages(); 

 

thisPanel.Children.Add(window);

radPane2.Content = thisPanel;


Thanks!
Frank
Asked by
frank
Top achievements
Rank 1
Answers by
Yana
Telerik team
frank
Top achievements
Rank 1
Share this question
or