When I'm drawing a layout on a webpage, using CSS, there can be dozens of rules, scattered across dozens of files, that could possibly influence how an element is actually displayed. Which is why the DOM explorers are such critical tools - I can select an element on a browser and see exactly what CSS rules are being applied to it.
In WPF, there can again be many rules - styles and templates and inline attributes and settings injected from the code-behind - that could possibly be interacting to determine how a given element is displayed.
Is there a way for me to look at an element, say a ComboBox, and to quickly determine exactly why it is drawing three times as tall as I think it should?
Personally, I use Snoop. I'm not familiar with Mole, but I heard it is "better" (subjective), though it isn't free. There is a trick to working with Snoop though, if you have a window created that isn't the main window, you can target it by doing a Ctrl+Shift+MouseOver (that actually targets the current visual control). This took me awhile to figure out, and knowing that is super useful!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With