Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

FilteredPropertyGrid
FilteredPropertyGrid analyses the objects in SelectedObjects and generates subcollections bases on the class of the object. It fills the extra combobox not with the invidual objects FilteredPropertyGrid extends the functionality of the PropertyGrid by extra support for objects of different types. The default behaviour of the PropertyGrid is to show only the common properties of the objects in the selectedObjects array. In some cases it is desirable to add an extra filter for objects types.
An example were this behaviour is requested is the 1d schematisation editor. The user selects the objects in the GIS oriented view by tracking a rectangle. The objects inside the rectangle are set as selectedObjects in a propertygrid. In many cases the objects in the selection rectangle will be of different types; this results in a very limited subset of shared properties. Typically a user is only interested in river profiles or culverts. This FilteredPropertyGrid user control automatically makes a subdivision of the different types in the selectedObjects array and offers the user the chance to make a selection via a combobox.

...