Search code examples
c#.netwpfxamlresourcedictionary

How to inspect and extract XAML style from WPF application?


I want to extract XAML styles from WPF application specially resource dictionary like this:

<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008">
....

Solution

  • You're probably looking for Styles Explorer, Reflector with BAML viewer or even SnoopWPF.