I have a property in a component that is a collection (array). The base type
of the item in the array contains a type which has another array. I edit the
the first array (default collection editor invoked from property grid) from
which I can edit the "next level" array. I have a custom editor
(UITypeEditor) for the second array. My editor needs information from other
properties in the component in order to display appropriate information. How
do I obtain the component being edited?
Example of layout:
class MyComponent: Component
{
public string AString
{
...
}
public MyFirstType[] First
{
...
}
}
class MyFirstType
{
public int AnInt
{
...
}
[Editor(typeof(MySecondTypeUIEditor), typeof(UITypeEditor))]
public MySecondType[] Second
{
...
}
}
class MySecondType
{
...
}
In the EditValue override for my custom UITypeEditor context.Instance points
to an object of type MyFirstType. I assume that I can use provider but I'm
not sure which service to request.
Thanks,
Rick
rt - 12 Jun 2004 18:50 GMT
Got it. I obtained the ISelectionService.
Rick
> I have a property in a component that is a collection (array). The base type
> of the item in the array contains a type which has another array. I edit the
[quoted text clipped - 45 lines]
>
> Rick