XamlX
XamlX copied to clipboard
General purpose pluggable XAML compiler with no runtime dependencies.
As in title. I'm not sure whether it's best to return current result or the owner of the property or null like WPF does[1]. Here is a test demonstrating the...
`IsVisible="{Binding !$parent[cont|MetroWindow].DataContext.LockScreen.IsLocked}"` gives a runtime error. but: `IsVisible="{Binding !$parent[Window].DataContext.LockScreen.IsLocked}"` works
 PDB should embed the actual path.
Following up on #65, this PR makes dynamic setter methods shared between all types. My first try at implementing this kept creating the setters type in `PropertyAssignmentEmitter`, but this posed...
Currently XamlX emitted a huge `!CompiledAvaloniaXaml.!XamlLoader.TryLoad` which puts all xaml files into a single method, which leads to all generated code being preserved after trimming, even if some of those...
This PR does two things: - Creates a single closure type per root type. The closure types aren't capturing anything anyway and only have static methods so it's fine to...
See https://github.com/AvaloniaUI/Avalonia/pull/14612
Provides XamlX functionality for AvaloniaUI/Avalonia/issues/9026. A little bit of extra work will be required in the Avalonia repository after this PR to cover all generated types.
The `AvaloniaNameGenerator` uses the `TypeReferenceResolver` when parsing markup files. During parsing, when an element is found having an `x:TypeArguments` attribute and a property element, when the property element is visited...