For almost a year I have been using one great open source utility for debugging
WPF applications.
Snoop (not the most informative name for the program) allows you to see VisualTree WPF applications.
In general, tulza has few opportunities and the story will be short, but it is simply indispensable for debugging. It allows not only to understand where and what Margin / Padding adversely affects the position of the element, but also helps to understand the logic of building controls in wpf.
Main program window
Magnifier window.Open Snoop, select from the list of running wpf-applications the right one and click Magnify (button with a magnifying glass).
A window opens with the contents of our application, you can zoom in, move ... well, etc.
There is a 3d view. 3-axis components are located relative to their position in the tree.

')
Properties and Events WindowClose the window with the zoom and click on the Snoop this application (binoculars). And here opens a completely wonderful window.

The left side is a tree of components.
If you hover on an element, then a pop-up pops up.
Top combo box with filter tree. Search by word and search for components with binding errors.
The right side shows the properties and events of the selected tree item.
A button with a multi-word name and a no less informative picture shows / hides default properties.
Interesting features:- the selected item is highlighted in the wpf application itself
- You can select the desired item directly in the wpf application. We press Ctrl-Shift and move the mouse in shape.
- If the value of the property changes, it is highlighted yellow for a few seconds.
- Gray highlights properties with an unspecified value.
- According to the author, the values of the properties can be changed directly from Snoop ... but I have not changed anything. (later I dig out the source)
PropertiesAllows you to see what RoutedEvent `s happened at the selected item. You can choose from the list of what events will follow.

Total:
Admittedly, the utility is not very convenient, unfinished and nothing new has appeared in it in 1.5-2 years ... but it is often simply irreplaceable. :)
It comes with source codes for C # and C ++, which means you can write your own.
In general, many thanks to
Pete Blois . You can download it
here .