I tried ILSpy, but this failed:
System.NotImplementedException: StaticResourceStart
Ricciolo.StylesExplorer.MarkupReflection.XmlBamlReader.ProcessNext()
Ricciolo.StylesExplorer.MarkupReflection.XmlBamlReader.ReadInternal()
Ricciolo.StylesExplorer.MarkupReflection.XmlBamlReader.Read()
System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r)
System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r, LoadOptions o)
System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
ILSpy.BamlDecompiler.BamlResourceEntryNode.LoadIntoDocument(IAssemblyResolver resolver, AssemblyDefinition asm, Stream stream)
ILSpy.BamlDecompiler.BamlResourceEntryNode.LoadBaml(AvalonEditTextOutput output)
ILSpy.BamlDecompiler.BamlResourceEntryNode.<>c__DisplayClass3.<View>b__1()
I tried Baml Viewer for .Net Reflector, but it could not create a valid XAML.
The main problem was binding this link to the wrong StaticResource.
For example (namedViews - CollectionViewSource):
Visibility="{Binding Path=Value, Converter={StaticResource namedViews}}"
ToolTip="{StaticResource namedViews}"
What other BAML decompilation applications are there? Any patch for BAML Viewer?
source
share