Content in window control

2 posts, 1 answers
  1. Abner Estrada
    Abner Estrada avatar
    2 posts
    Member since:
    Nov 2009

    Posted 25 Nov 2009 Link to this post

    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
  2. Answer
    Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 26 Nov 2009 Link to this post

    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.
  3. DevCraft banner
Back to Top