Embeding a Usercontrol [modified]
-
Sounds like a newbie question. But can't help my self for already an hour. I've Silverlight application with tabs and don't want to put all code in one large file. So I have made single UserControls and now I want to put them into the tab control.
I can't see anything in the designer. Can somebody help me out of this?
Thanks!modified on Thursday, January 20, 2011 8:43 AM
-
Sounds like a newbie question. But can't help my self for already an hour. I've Silverlight application with tabs and don't want to put all code in one large file. So I have made single UserControls and now I want to put them into the tab control.
I can't see anything in the designer. Can somebody help me out of this?
Thanks!modified on Thursday, January 20, 2011 8:43 AM
StackPanels size to the size of the content. In your case, the size is 0x0, so you don't see anything. You need to have your d namespace defined in the my:UDW_Details XAML and then add: d:DesignWidth="300" d:DesignHeight="300" to have a design time width and height. or you can stub in design time data. Either way works.