Can I use TypeConverterAttribute to decorate a public property of a user control widget?
public uint Width
While this compiles without any error, I have the feeling that Sitefinity is just ignoring it. What attributes can I use for public properties of a widget?
I'm migrating a user control from 3.7SP4 to 6.2, and some property values are not being migrated. I'm wondering if it is because of the TypeConverter attributes.
My guess is that you've specified the wrong converter type -
UnitConverter. Please note that
uint (short for unsigned integer), which is the property type, is not the same as
Unit (as measuring unit). Most probably trying to use the specified converter fails and that's why the property is ignored.
Please try specifying either an
uint is the C# alias for
System.UInt32) or no converter at all, as .NET is smart enough to figure it out in this case.