il-repack icon indicating copy to clipboard operation
il-repack copied to clipboard

Use Open-source WPF for BAML reading?

Open timotei opened this issue 6 years ago • 2 comments

https://github.com/dotnet/wpf/tree/master/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml

timotei avatar Dec 05 '18 20:12 timotei

Source code of its BAML reader is not yet published. Not only this project, but others wait for Microsoft to release that code.

I wrote about it once, https://blog.lextudio.com/summary-of-baml-reader-writer-implementations-62950ac47481 and System.Windows.Markup.BamlReader and System.Windows.Markup.BamlWriter are not yet in that GitHub repo.

lextm avatar Dec 05 '18 20:12 lextm

ILSpy has a BAML reader: https://github.com/icsharpcode/ilspy/blob/47ac132f77224b0fc6f8478df81cd40c3a7d229d/ILSpy.BamlDecompiler/Baml/BamlReader.cs

And the official BAML reader is still internal (although we could fork the source if we wanted): https://github.com/dotnet/wpf/blob/main/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlReader.cs

KirillOsenkov avatar Jan 07 '24 03:01 KirillOsenkov