📜 ⬆️ ⬇️

Snoop - view VisualTree WPF applications

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
image

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.
image
')
Properties and Events Window
Close the window with the zoom and click on the Snoop this application (binoculars). And here opens a completely wonderful window.

image

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.
image
Interesting features:


Properties
Allows you to see what RoutedEvent `s happened at the selected item. You can choose from the list of what events will follow.
image

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 .

Source: https://habr.com/ru/post/75587/


All Articles