DenysVuika / WPG

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

SelectedObject is not a dependency property #10

Open arrrbiter opened 13 years ago

arrrbiter commented 13 years ago

Since the SelectedObject property is not a dependency property, I was unable to bind it to my viewmodel without changing the code and making it a dependency object.

tscott1213 commented 13 years ago

Would you mind describing how you changed the code? I have a naive implementation where SelectedObject is a dependency property and it updates SelectedObjects when it is set. However, if SelectedObjects gets set directly then my SelectedObject property is incorrect.

I'm thinking that SelectedObjects should be the dependency property, but still a bit unclear on how to keep the two in-sync.

mamuesgit commented 11 years ago

Hi, any updates on this issue? Could someone post a workaround sample, or is it simply not possible to work with WPG and MVVM?