Snoop

Snoop is a WPF spying utility, also known as a visual debugger. Snoop is a powerful tool, since it allows browsing the visual tree of a running application, showing properties and their values, changing values, injecting methods, and many other interesting features. In Figure 9.2, Snoop shows the visual tree of an application—without having the source code—and properties for controls you select.

Image

Figure 9.2. Inspecting an application with Snoop.

Snoop is also useful for debugging data-binding errors. If you switch to the Methods tab, you can execute methods exposed by the selected object over the object itself (see Figure 9.3), whereas the ...

Get Hidden WPF: Secrets for Creating Great Applications in Windows Presentation Foundation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.