Open timotei opened 5 years ago
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.
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
https://github.com/dotnet/wpf/tree/master/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml