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

Content in window control

1 Answer 48 Views
Window
This is a migrated thread and some comments may be shown as answers.
Abner Estrada
Top achievements
Rank 1
Abner Estrada asked on 25 Nov 2009, 08:02 PM
Hi,
I try to assign with code, content to Window, but, no works, can help me, this is my code:

            RadWindow win = new RadWindow();
            pnlControls pnl = new pnlControls(); ///Is a user control with other controls
            win.Content = pnl;    
            win.Show();

Thanks in advance.

Abner

1 Answer, 1 is accepted

Sort by
0
Accepted
Miroslav Nedyalkov
Telerik team
answered on 26 Nov 2009, 11:50 AM
Hi Abner,

This should work fine. I prepared a simple project that uses your code. Please find the attached project.

Greetings,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Window
Asked by
Abner Estrada
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or