L
layos
Hi all,
do someone knows how create an ExpandableObjectConvertible
property for a webcontrol that behaves like the "Font" property? I'll
try to explain better below.
I wrote the following property:
public MyExpandableType MyExpandableProp { get; }
and MyExpandableType is an internal class in my webcontrol like this
[TypeConverter(typeof(ExpandableObjectConverter))]
public class MyExpandableType
{
public string Text {get; set; };
}.
with an empty constructor too.
Visual Studio displays it good (as an hierarchy), but instead of
"blank" (or better a custom value like the FontInfo type property that
displays the "fontname" value of child object) in the property grid i
red the type (as string) like MyControlType+MyExpandableType.
Any idea?
TIA
do someone knows how create an ExpandableObjectConvertible
property for a webcontrol that behaves like the "Font" property? I'll
try to explain better below.
I wrote the following property:
public MyExpandableType MyExpandableProp { get; }
and MyExpandableType is an internal class in my webcontrol like this
[TypeConverter(typeof(ExpandableObjectConverter))]
public class MyExpandableType
{
public string Text {get; set; };
}.
with an empty constructor too.
Visual Studio displays it good (as an hierarchy), but instead of
"blank" (or better a custom value like the FontInfo type property that
displays the "fontname" value of child object) in the property grid i
red the type (as string) like MyControlType+MyExpandableType.
Any idea?
TIA