This attribute can decorate the collection properties (i.e., IList) of your selected object in order to control the types that will be allowedto be instantiated in the CollectionControl.
The following snippet causes the new item ComboBox to contain the "Woman" and "Man" types that can be instantiated.
public class Person {...}
public class Man : Person {...}
public class Woman : Person {...}
public class Community
{
[NewItemTypes(typeof(Man), typeof(Woman))]
public IList<Person> Members { get; set; }
}
System.Object
System.Attribute
Xceed.Wpf.Toolkit.PropertyGrid.Attributes.NewItemTypesAttribute
Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2