Quantcast
Channel: wpftoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 2157

New Post: Populate Select types combo in CollectionEditor with NewItemTypes

$
0
0
Hi,

Try adding
CollectionControl1.NewItemTypes = new List<System.Type>() { typeof( Person ) };
and you'll end up with Person in the ComboBox.

If you have a class "Man" deriving from "Person" and a class "Woman" deriving from "Person", try adding
CollectionControl1.NewItemTypes = new List<System.Type>() { typeof( Man ), typeof( Woman ) };
and you'll end up with Man of Woman in the ComboBox.

Viewing all articles
Browse latest Browse all 2157

Latest Images

Trending Articles



Latest Images

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