Can I set the content of RadWindow by code?

2 posts, 0 answers
  1. Paolo
    Paolo avatar
    423 posts
    Member since:
    Jun 2009

    Posted 02 Jul 2009 Link to this post

    Hello,
    Can I declare and use a RadWindow by code?
    I was trying to do :

       AccountPosition account = new AccountPosition();
       RadWindow radWindow = new RadWindow();
       radWindow.DataContext = account; //<- hope this fill with the content... but no luck
       radWindow.Show();

    Or have I to declare the RadWindow in the Xaml and fill it with the UC?

    Thanks in advance

    Paolo
  2. Paolo
    Paolo avatar
    423 posts
    Member since:
    Jun 2009

    Posted 02 Jul 2009 Link to this post

    ok, sorry... I fixed it, it's the "Content" property...

    Paolo
  3. DevCraft banner
Back to Top