Compact Framework's System.ComponentModel namespace does not contain
DesignerAttribute. In order to add this and other design-time
attributes, you must add a "Design-Time Attribute File" (right-click on
the project, Add-->New Item, in Windows Forms, select "Design-Time
Attribute File"). This is an XML file with an .xtma extension. Using
the Intellisense that's provided, you can see that you can add a Class
tag and name the class you'd like to add the attribute to. Inside of
that, further Intellisense will tell you that Designer is an available
XML node. You will need to supply the Type as well as the BaseType (not
sure why this is necessary, since base types can be determined through
reflection), with fully qualified assembly names. Here is an example of
what that looks like:
<?xml version="1.0" encoding="utf-16"?>
<Classes xmlns="http://schemas.microsoft.com/VisualStudio/2004/03/SmartDevices/XMTA.xsd">
<Class Name="DeviceControlsLibrary.DeadlyControl">
<Designer>
<Type>DeviceControlDesignersLibrary.DeadlyControlDesigner, DeviceControlDesignersLibrary,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</Type>
<BaseType>System.ComponentModel.Design.IDesigner, System, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089</BaseType>
</Designer>
</Class>
</Classes>
The
<Type> tag is your control's type (with namespace), followed by
the fully qualified assembly name. The BaseType should be used as shown
here.
You can find more information on this topic in this article: http://dvanderboom.wordpress.com/2008/03/14/compact-framework-creating-custom-controls-and-designers-part-1/