Open unofficialdev opened 2 years ago
is it possible to add support for outputting axaml interface files as it was originally?
I guess so... rather, the question is: who will add it?
Do you have any workaround for this goal? i think we need something like baml decompiler
For those interested in adding support for this:
We could add support for the binary/XML mixture format in !AvaloniaResources
and add the nodes for the individual Avalonia XAML files as child nodes to that node, just as we do now for .resources
files.
The BAML decompiler already uses that approach to resolve the connection ids back to x:Name and event handlers. See https://github.com/icsharpcode/ILSpy/blob/master/ILSpy.BamlDecompiler/Rewrite/ConnectionIdRewritePass.cs#L116-L200
Hope this helps!
If anyone is interested in contributing such a feature, please get in touch with me, so I can provide you with answers to your potential questions. Thanks!
Do you have any workaround for this goal? i think we need something like baml decompiler
The workaround is manually translating ILSpy's output, sorry.
See also issue https://github.com/icsharpcode/AvaloniaILSpy/issues/70 in AvaloniaILSpy repo.
It seems that in avalonia applications the axaml match file is compiled to c# code. is it possible to add support for outputting axaml interface files as it was originally?