How to implement a custom panel with INamingContainer?

后端 未结 1 794
陌清茗
陌清茗 2021-01-25 18:32

I\'m trying to implement a custom panel control that would act as a naming container. So far here is so what I\'ve done.

First this is my custom control, MyPanel...

相关标签:
1条回答
  • 2021-01-25 18:46

    It sounds like you might benefit from a templated control design, instead of from a Panel design. Here are some resources to get started with templated controls:

    • Templated User Control: http://msdn.microsoft.com/en-us/library/36574bf6.aspx
    • Templated Server Control: http://msdn.microsoft.com/en-us/library/aa478964.aspx

    The appeal of templated designs is that repeating a server control ID from one template in another is permitted.

    0 讨论(0)
提交回复
热议问题