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

PropertyGrid.SelectedObjects

Feb 20, 2012 at 4:55 PM

Hi,

We would like to change the WPF PropertyGrid we use to yours, however we are not sure if it is possible to display multiple objects in your PropertyGrid at the same time (while respecting the .NET MergeableAttribute) as the Win Forms PropertyGrid does.  This is a very important feature for us, and I suspect others too.

Thanks in advance.

 

Feb 23, 2012 at 6:58 AM

Hi JohnGS!

I'm not sure how MergeableAttribute works, but you could try using the the solution presented here to unite multiple objects in one and use this union as PropertyGrid.SelectedObject.

Good luck.

Feb 23, 2012 at 11:57 AM

Thanks for the suggestion.  Certainly looks like it would work, however we were hoping the PropertyGrid might already support multiple objects or there might be plans to. 

The MergablePropertyAttribute (I mistakenly called it MergeableAttribute before) has been around since early .NET versions, and tells property grid controls such as the .NET win forms control whether properties are displayed for multiple objects.

http://msdn.microsoft.com/en-us/library/system.componentmodel.mergablepropertyattribute.allowmerge(v=vs.85).aspx

Aug 29, 2012 at 2:35 PM

An feature request has been created based on your need:

http://wpftoolkit.codeplex.com/workitem/18554