G
Guest
I've spent several hours on Google and founds 100's of entries that get close
to the answer, but can't quite get there.
I'm creating an component that acts as an ExtenderProvider for other
components. One of the properties that it exposes is a class I've created
that itself has a number of properties.
I've created a type converter that is based on ExpandableObjectConverter.
Overrode the GetCreateInstanceSupported, CreateInstance, CanConvertTo, and
ConvertTo methods.
Here is the problem: The only way I can get it to work correctly is to
create an InstanceDescriptor based on a constructor that has ALL the
properties. The class is pretty complex and I'd rather not have to have to
reference all the properties in a constructor, InstanceDescriptor, etc.
Is there a way to do this with an ExtenderProvider, just use a few key
properties in the InstanceDescriptor and have any other properties serialized
the usual way (i.e. the DesignerSerializationVisibility.Content?
If I set DesignerSerializationVisibility on the GetXXXXX method of the
ExtenderProvider, it seems to treat it as a property of the actual component.
Seems like I remember seeing something about this before, but can't find the
examples anywhere.
Thanks in advance for any help. Didn't see a group for just .Designer
issues, so thought I'd start here.
to the answer, but can't quite get there.
I'm creating an component that acts as an ExtenderProvider for other
components. One of the properties that it exposes is a class I've created
that itself has a number of properties.
I've created a type converter that is based on ExpandableObjectConverter.
Overrode the GetCreateInstanceSupported, CreateInstance, CanConvertTo, and
ConvertTo methods.
Here is the problem: The only way I can get it to work correctly is to
create an InstanceDescriptor based on a constructor that has ALL the
properties. The class is pretty complex and I'd rather not have to have to
reference all the properties in a constructor, InstanceDescriptor, etc.
Is there a way to do this with an ExtenderProvider, just use a few key
properties in the InstanceDescriptor and have any other properties serialized
the usual way (i.e. the DesignerSerializationVisibility.Content?
If I set DesignerSerializationVisibility on the GetXXXXX method of the
ExtenderProvider, it seems to treat it as a property of the actual component.
Seems like I remember seeing something about this before, but can't find the
examples anywhere.
Thanks in advance for any help. Didn't see a group for just .Designer
issues, so thought I'd start here.