Lets say I have an object Farm.
Farm has a collection property defined as follows:
ObservableCollection<iCrop> Crops;
Crops has classes that inherit iFruit or iVegetable etc.
IFruit inherits from iCrop.
These classes will be apple, banana, carrot, squash etc
I have a static collection that lists all the available classes - loaded at runtime.
Let's call this ObservableCollection<iCrop> CropsBase;
When I assign Farm to propertygrid and then lcik on Crops to open collection dialog, how do I assign CropsBase to the list of types to add?
Farm has a collection property defined as follows:
ObservableCollection<iCrop> Crops;
Crops has classes that inherit iFruit or iVegetable etc.
IFruit inherits from iCrop.
These classes will be apple, banana, carrot, squash etc
I have a static collection that lists all the available classes - loaded at runtime.
Let's call this ObservableCollection<iCrop> CropsBase;
When I assign Farm to propertygrid and then lcik on Crops to open collection dialog, how do I assign CropsBase to the list of types to add?