views:

28

answers:

1

I want something like that:

<my:MyFancyPanel>
   <asp:Label Text="Hello">
</my:MyFancyPanel>

I tried but it seems my usercontrol doesn't accept any content.

+1  A: 

you need to make it a Templated Usercontrol

Caspar Kleijne
Looks great. Is there a way to get User Controls into the Toolbox?
codymanix
Never done that, but you can try the ToolboxItemAttribute: http://msdn.microsoft.com/en-us/library/system.componentmodel.toolboxitemattribute.aspx ;)
Caspar Kleijne