Crono
Crono

Reputation: 10478

On breakpoint, how can I tell if there's any attached dependency properties for which there's an active value?

When looking at a DependencyObject instance in the Watch window while the debugger has stopped on a breakpoint, I can see every of its "hard" properties and what values they're on, if any.

This window however - or at least AFAIK -, won't show if there's any attached dependency properties on the object for which a value currently exists (different from "Unset").

Is there any other tool window inside Visual Studio that would give me that information?

Upvotes: 0

Views: 534

Answers (2)

Sergey Vlasov
Sergey Vlasov

Reputation: 27890

In Visual Studio debugger you can open WPF Tree Visualizer for a variable:

enter image description here

It shows attached property values like Grid.Column set in this example:

enter image description here

Upvotes: 2

Sergey Vlasov
Sergey Vlasov

Reputation: 27890

In Visual Studio 2015 there is a Live Visual Tree that you can use to select a UI element and then Live Property Explorer will show all attached dependency properties for it.

Upvotes: 2

Related Questions