Feed on

Curious to see the styles for any WPF framework control?  If so, take a look at this simple and free utility call StyleSnooper.

Originally posted by Lester Lobo and revamped by Ælij.

What does it do?

The first step is to point StyleSnooper at any WPF assembly.  It will parse all the public, concrete, non-generic classes in the assembly that derive from FrameworkElement and show them in the combobox.  When you select an item in the combobox StyleSnooper shows you a list of all the styles applied to this class.  Simple and useful.  My kind of utility!


Compiled EXE

- Walt

13 Responses to “WPF tools – StyleSnooper”

  1. [...] Ritscher has a really handy tool on his blog called ‘Style Snooper’.  This  utility will display the style of any WPF control from its [...]

  2. Francois says:

    Thanks for sharing this tool, great idea. Lovely.

  3. Robert says:

    Hi there.

    When Vista Aero Glass is off and Vista Basic theme is enabled, can you “use” that bluish default background in your client area, instead of that gray background?
    How would you do this?

  4. [...] Wer jedoch ein kleineres Tool mit genau nur diesem Funktionsumfang verwenden möchte, dem sei StyleSnooper ans Herz [...]

  5. Reimer says:

    Thanks for sharing this tool – just what i needed…

  6. [...] styles or just styles in general in any WPF assembly, check out this great little tool called StyleSnooper. Posted in Tech. No Comments [...]

  7. Bill says:

    download is not working

  8. Svart says:

    Great tool, really helpful for WPF developers. appreciate it.

  9. [...] the free WPF Stylesnooper. When you start the tool, it has the .NET standard controls loaded. Using the Load button on the [...]

  10. Greg Bacchus says:

    Can I suggest that you change the line of the code that actually does the serialization to:

    System.Windows.Markup.XamlWriter.Save( style, new XamlDesignerSerializationManager( xmlTextWriter ) { XamlWriterMode = XamlWriterMode.Expression } );

    This will make the XAML output far more readable.

  11. [...] most templatable controls, but in general you can find this out for yourself using a tool such as StyleSnooper or Reflector). You’ll see that there is some complexity to support axes on all four sides of [...]

  12. Anders says:

    Please don’t google-translate your website… even though it is hilarious to read. It distracts, and the technical terms used are in English anyway, so don’t bother translating them.

  13. Anders says:

    Oh my god… my comments get translated aswell… I almost pissed myself from laughing!!!

Leave a Reply