Viewing the default WPF styles and templates

by Sébastien Van Bruaene 19. February 2009 03:29

Sometimes it is very useful to view the default styles and templates in a WPF control, to get some inspiration for your own controls or just to understand something better. I used to use style snooper for this, a tool by Walt Ritscher. This worked out ok for me but I discovered there is an BAML viewer add-in available for .NET Reflector which makes the style snooper tool obsolete (.NET Reflector is an essential tool for any .NET developer, with it you can easily decompile .NET assemblies and view it's resources).

The BAML viewer plugin can be downloaded here. Just add to the add-ins in Reflector. Then open an assembly containing BAM, I use PresentationFramework.Aero.dll as an example. Make sure you open the BAML viewer.

 

 

The BAML viewer will show a list of all loaded assemblies that contain BAML. Just expand the resources and click on the BAML file and voila everything is there.

 

 

 

Isn't that great ? :) 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , ,

Comments

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen

About the author

I am a software engineer / architect who spends most of his time working with Microsoft technologies (.NET / WPF / EF / SQL Server). I have worked in the healthcare sector for some time but nowadays I work for a great company called Metanous. 

I am very happily married but I have no children yet. For now I only have 4 rabbits and 4 chickens. My rabbits are of the "Vlaamse reus" breed, the biggest kind of rabbit in the world :)

In my spare time I play a little basketball and mini soccer (yes that is an actual sport).