I have a class, let's call it ExtenderComponent, that implements
IExtenderProvider. It Extends a property called ImageIndex via
CanExtend, GetImageIndex, and SetImageIndex.
What I want to do is on the component that it is extended to
(extendee), have the property simply read 'ImageIndex', rather than
'ImageIndex on ExtenderComponent1'.
Is there any way to do this? I was thinking about using
PropertyDescriptor but I don't know if that will work.
Shawn Burke, if you're out there. I could use some help on this.
Andrew Smith \(Infragistics\) - 08 Jul 2004 02:24 GMT
No, this is not possible. Visual studio uses an internal derived property
descriptor. If you think about why they list that it makes sense - as you
could have multiple instances of the extenderprovider (e.g. multiple tooltip
classes, etc.).
> I have a class, let's call it ExtenderComponent, that implements
> IExtenderProvider. It Extends a property called ImageIndex via
[quoted text clipped - 8 lines]
>
> Shawn Burke, if you're out there. I could use some help on this.
schneider - 26 Jul 2004 08:42 GMT
You can reduce the number of properties which do this.
If you create a TypeConverter for a object.
The object will contain the "* on ExtenderComponent1" but the properties
will not.
Now we just need to hide the object item.
Schneider
> I have a class, let's call it ExtenderComponent, that implements
> IExtenderProvider. It Extends a property called ImageIndex via
[quoted text clipped - 8 lines]
>
> Shawn Burke, if you're out there. I could use some help on this.