Revamped Style Snooper
Update: This utility has become a bit irrelevant since Reflector now has a BAML Viewer add-in. You can use it to view any assembly containing BAML resources, which it will automatically decompile into XAML.
Style Snooper (or StyleSnooper?), originally posted by Lester, is a tool that can extract control styles from a compiled assembly. Quite useful to take a peek at someone else’s work.
I added a couple of features:
- Switch to a FlowDocumentScrollViewer to view the style (much handier than a plain old TextBox; just try hitting Ctrl+F.)
- Primitive syntax-coloring.
- A bit of glass.
- And the feature that made me start tinkering with this tool to begin with – load other assemblies.
- I also fixed the TargetType property to use the proper Type MarkupExtension ({x:Type …}) and removed the IsPublic restriction from the type list.
P.S. If you’re wondering about my wallpaper, it’s “Song of the Sky” from Digital Blasphemy. It used to be in the free gallery, but isn’t anymore. It’s very reminiscent of Vista’s Aurora.
Attachment: StyleSnooper.rar
Tagged with: WPF
4 Responses to Revamped Style Snooper
Tags
.NET 4 Animation AppFabric Async Axum Blog C# ClearType Cloud CLR CodeValue Contests Deep Zoom Experiments Generics Google Ink Lectures Modeling Performance Personal Pivot Prism Programming Languages Prolog Reflector RTL Sela Silverlight The Arbel Network Themes Threading Tips Visual Studio WCF Windows 7 Windows 2003 Windows Azure Windows Forms Windows Phone Windows Vista Windows XP WPF XAML ZuneArchives
- May 2013
- February 2013
- June 2012
- May 2012
- June 2011
- November 2010
- August 2010
- July 2010
- June 2010
- March 2010
- December 2009
- November 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- November 2007
- September 2007
- June 2007
- May 2007
- February 2007
- November 2006
- October 2006
- February 2006
- August 2005
- February 2005
- August 2004
- July 2004
- June 2004
- May 2004







How can you get Styles for themes other than what you have loaded? For instance you are getting the Aero theme Style, how about getting the Style for a Button for a Luna theme?
Check out BAML Viewer for Reflector (see links at the top of this post.)
voici un outil pratique pour examiner la définition du style par défaut des différents controles WPF
Hi, I fixed a bug with indentation (move indent– to the top of its block, this fixes closing tags that were too much indented), and compacted the user interface so that there is more space for code.
You can download it form http://sklad.tomaskafka.com/code/stylesnooper-fixed.zip
My mail is keff85 at gmail.