Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

New Post: PropertyGrid Collection Editor not firing PropertyValueChanged event?

$
0
0
Hi,

I haven't try with a custom editor. Maybe it could work, but I can't be 100% sure. For List<CustomType>, a CollectionEditor is currently used. I believe a custom editor would look like it. You can find it here : Xceed.Wpf.Toolkit/PropertyGrid/Implementation/Editors/CollectionEditor.cs.

This Editor will need to get notified of changes in the PropertyGrid of its CollectionControl. In v2.4, the CollectionControl gives access to its PropertyGrid through a new property. It will then need to push the event to the main propertyGrid so that someone can access it. Or someone should have access to this CustomEditor to get this event. Unless you have another idea ?

Currently, depending on the type of the propertyItem, the PropertyGrid will choose the correct editor here : Xceed.Wpf.Toolkit/PropertyGrid/Implementation/PropertyGridUtilities.cs, in method "CreateDefaultEditor". But you can use the EditorAttribute to set a custom editor for a specific property.

Viewing all articles
Browse latest Browse all 4964

Trending Articles