开发者

Debugging WP7 Silverlight Layout

开发者 https://www.devze.com 2023-03-20 08:16 出处:网络
Does anyone know if is there a tool inspect the con开发者_开发百科trol 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 th

Does anyone know if is there a tool inspect the con开发者_开发百科trol 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!


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).


Google SilverlighSpy application. It does that plus more


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消