Help on ExpandableObjectConverter


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
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top