This project has moved. For the latest updates, please go here.

Adding Editor Definitions on prebound SelectedObject

Dec 21, 2011 at 2:40 AM

Hi all,

If you apply a SelectedObject binding to the property grid directly in xaml, as well as custom type property definitions, then when the property grid loads the custom data templates will not be applied. This is because the DataTemplates are added after the SelectedObject has already triggered an update to the property grid.

As a quick fix I added an OnCollectionChanged method to the EditorDefinitions collection, which forces an update to the property grid. It works, but I'm sure there is a more elegant method.

 

Matt