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

New Post: PropertyGrid: ExpandableObject do not work with struct property!

$
0
0
I bind a object which has a struct(System.Windows.Size) property to the propertygrid. and i have set the [ExpandableObject] attribute to the property, so that i can expand the nested properties of the Size property.

However, when i changed the width property of the Size property in the expaned grid, the value can not update to the SelectedObject.

I searched the old posts, and learned it is because the Size property is a struct, it's passed by value. and I also got a solution from the old post, but it's not a perfect one.

could you guys fixed this bug?

thanks,

Andy.

Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>