Search code examples
c#winformsvisual-studiocompact-frameworkvisual-studio-designer

Compact Framework, Custom TabControl, Designer interactions


I'm considering making a custom TabControl for the Compact Framework 3.5, one that has Designer interactions enabled.

All my research so far has led me to solutions for a control targeting the full .Net Framework, and I have soon been stopped by the lack of several required classes, interfaces and namespaces in the Compact Framework.

Ideally, I would like to follow these tutorials, but I find myself unable to do so because of the aforementioned lack. http://msdn.microsoft.com/en-us/library/h51z5c0x(v=VS.90).aspx

I already have the .xmta file, and I am aware of the Designer tag, however I can't figure out which class to put in there since I can't figure out how to make that very class!

Any help on that matter would greatly be appreciated.

Regards


Solution

  • The short answer is that you can't build custom, designable container controls for the CF, nor can you extend the existing TabControl and have designer support for it.

    To be completely honest, though, I'd not use the TabControl at all for handheld development today. For a longer diatribe on this, see my reasoning and workaround here.