Hello, everyone.
After some effort I had success porting my NET .CF 1.0 controls to NET .CF 2.0 with VS2005. However I cannot find info on some designer details.
How should I port these property attributes:
a) [DefaultValue(TextBoxInputStyle.Normal)]
where TextBoxInputStyle is an enum declared in the same assembly
b) [RefreshProperties(RefreshProperties.All)]
c) [DefaultValue(typeof(Color),"Black")]
Thanks in advance,
Kostas

Question about custom attributes for XMTA files
Thomas LEBRUN
I got this to work only with .NET built-in types (including enums).
If you feel that this is a bug, file it here: https://connect.microsoft.com/VisualStudio
Instead of using the <DefaultValue> in the XMTA file you can define the default value by implementing two special methods for each property (Reset.. and SouldSerialize...) Details on this can be found here: http://msdn2.microsoft.com/en-us/library/53b8022e.aspx
This method works fine for me.
Michael
Marlin7
Hi Kostas
The following article deals with this topic:
http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnnetcomp/html/create_migrate_designer_controls_vs2k5.asp
Hope this helps
Michael
YoungJoe
I have already read this article, but it does not cover such details. I have been trying some things such as
<DefaultValue>
<Type>com.mycompany.MyControls.TextBoxInputStyle</Type>
<Value>TextBoxInputStyle.Normal</Value>
</DefaultValue>
but they didn't work and decided to ask for help.