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

Can I set the content of RadWindow by code?

1 Answer 79 Views
Window
This is a migrated thread and some comments may be shown as answers.
Michele
Top achievements
Rank 2
Michele asked on 02 Jul 2009, 09:54 AM
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

1 Answer, 1 is accepted

Sort by
0
Michele
Top achievements
Rank 2
answered on 02 Jul 2009, 10:07 AM
ok, sorry... I fixed it, it's the "Content" property...

Paolo
Tags
Window
Asked by
Michele
Top achievements
Rank 2
Answers by
Michele
Top achievements
Rank 2
Share this question
or