Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

New Post: PropertyGrid: How do I add property classes to sub property collection (explanation inside)

$
0
0
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?

Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>