Short question
Is there a quick way to find out what a particular attached property is bound to at runtime?
Detail
I am debugging a UserControl (which inherits ItemsControl ), which associates Canvas.Left and Canvas.Top its elements with two properties of ViewModel objects via style. At run time, I place a breakpoint in a specific place and want to check the binding of the attached Canvas.Left property.
Note that I do not want to see the current value of the attached property for the element. I can easily do this by checking the value of Canvas.GetLeft(myItem) in QuickWatch or Immediate windows. I want to check the actual binding here, that is, the name of the VM property to which this attached property for myItem .
I already tried Snoop, which, unfortunately, does not show bindings of attached properties (unless I missed anything obvious).
c # data-binding wpf xaml attached-properties
dotNET
source share