How to enable Default Values for properties in a 'CollectionEditor' dialog

´╗┐Please read entire question first to understand where I would have the ability to reset the default value of a property.

When defining a custom class that can be visually designed, one can implement a collections editor to modify properties

which are lists, arrays, collections, using the following pattern:


public ElementCollection Elements
{
  get;
}

Editing the Elements property of this class will now launch a CollectionEditor dialog, with a list of members on the left and a PropertyGrid on the right.


Asked: February 20, 2016 by administrator
Tags: winforms
Posted under: programming
616 Views

2 Answers


postanswer