2
votes

Does anyone know if is there a tool inspect the control hierarchy in Silverlight, similar to a DOM browser in HTML? I am trying to give my app the same look and feel in light and dark themes, and I'm having troubling isolating the phone resource that is causing a few elements to still change color.

Thanks!

3

3 Answers

2
votes

I would also endorse Silverlight Spy for this sort of thing. With it you can drill down through the visual tree, examine properties of UI elements, and with the paid version you can change those properties on the fly to see the results. If you combine that with Reflector (or one of the clones floating around) you have everything you need to extract and test styles.

Note that there is (now) a free version of Silverlight Spy but it is quite hobbled, if your budget allows you may as well just grab the full version (it is one of those tools you will use frequently, so well worth it).

0
votes

Google SilverlighSpy application. It does that plus more

0
votes

JetBrains have made DotPeek available. It is currently free (hope it stays that way, unlike .Net Reflector).

It will also convert Silverlight DLLs all the way back to readable source code! I have tried it on several SL projects and it works like a charm.

*Note: as of the time of this writing it still gets a couple of things wrong: string concatenations and event handlers generate the wrong code.