This project has moved. For the latest updates, please go here.
1
Vote

Snoop breaks binding of the control not exists when Snoop attached

description

I have a control which is dynamically generated and it bind some properties with other control using RelativeSource or ElementName. When I attach Snoop and then generate the control, I found those bindings are broken. I got following error message.

System.Windows.Data Error: 3 : Cannot find element that provides DataContext. BindingExpression:(no path); DataItem=null; target element is 'FrameworkElement' (Name=''); target property is 'DataContext' (type 'Object')

Then I selected the control on Snoop visual tree, the binding got recovered. Maybe because it reloads them.

Without attaching Snoop, the binding works correctly.

comments