Jonathon pointed out a flaw in my BAML article. I made it sound like downloading the latest version of Reflector was all you had to do. That’s not true, you also have to download another tool. I guess wasn’t too clear in explaining how Reflector creates XAML from BAML. Here is a more detailed roadmap.
Lutz Roeder has created a tool, BamlDisassembler (update on March 10,2007, new addin for Reflector 5.0 is available. BamlViewer )), that reads BAML from an assembly resource and converts it to XAML. You can run BamlDisassembler at a command prompt like so:
BamlDisassembler input.baml output.xaml
Viewing XAML
You can also run BamlDisassembler from Reflector. This is what I was trying to say in my previous article. Here’s how:
- In Windows, register the .baml file extension with BamlDisassembler.
- Run Reflector
- Open the WPF assembly in Reflector
- Click the resources folder in the WPF assembly
- Click the *.g.resources node
- Double click the *.baml file
- Enjoy reading the XAML
-Walt
Like this article? Subscribe to the RSS feed.









The download link seems to be no longer working. Where can I find this file?
I found the tool available on the Reflector Add-Ins page:
http://www.snowball.be/ct.ashx?id=fe3981a0-5115-4bb8-88dc-f16abe9ab775&url=http%3a%2f%2fwww.codeplex.com%2freflectoraddins
Very interestingly! We look forward to continuation
FYGbjs sd89Vy7fF7f7siDq0j