views:

72

answers:

1

Using WinDbg and trying to debug a Silverlight application for memory leaks, I come across properties on my objects that are implemented as a DependencyProperty - and when I dump the object in the debugger (WinDbg) I can see the property - that is, I can see the actual static field.

How do I see the actual value of the property?

+1  A: 

You should be able to get the value using the GetValue(PropertyName) method on the DependencyObject (which is required for it to have a Dependency Property). Not sure if that works in WinDbg. Tess Ferrandez mentions one tip with Dependency Properties but it doesn't give a true answer.

Bryant
Thanks - I guess I'll have to experiment. Looks like I've fallen off the edge of community knowledge with this one :)
Craig Shearer