DenysVuika / WPG

WPF PropertyGrid Control
Apache License 2.0
101 stars 47 forks source link

subpropertychanged? (how to change struct values) #11

Open jasonswearingen opened 13 years ago

jasonswearingen commented 13 years ago

hello, we are trying to modify the values of a struct added to the properygrid (example: Xna's Vector3.X)

however it looks like there is a boxing problem (or rather, lack of boxing) so the modified value (example: vector3.X) does not cause the parent value to update (example: vector3)

if we make a test "ClassVector3" as a class instead of a struct, it works.

So question, how can we fix this? i was thinking we could use what i see as "SubPropertyChanged" event, but i can not figure out how to use this. any suggestions?