Dec 14 2009

Making Designer Friendly Controls

Category: MobileJoel Ivory Johnson @ 01:23

I discovered this blog entry by way of SmartMobiDevice.com and thought that it was something I should share. If you've ever made your own controls for Windows Mobile you know that if the control is making any P/Invoke calls to native methods then it will not render in the designer. Simon Hart has a simple solution for this. The identity of the application domain is different on the desktop and in Windows Mobile devices and using that identity he conditionally makes the P/Invoke call which results in a design friendly control. To see his example source code read on.

Tags:

Comments

1.
pingback topsy.com says:

Pingback from topsy.com

Twitter Trackbacks for
        
        Making Designer Friendly Controls
        [j2i.net]
        on Topsy.com