XamlX
XamlX copied to clipboard
General purpose pluggable XAML compiler with no runtime dependencies.
Adds support for nested types specified with a `+` to the Cecil backend. Fixes https://github.com/AvaloniaUI/Avalonia/issues/2725.
As the title suggests, using a `TemplateBinding` with a path to the binding object itself (`{TemplateBinding .}`) causes an exception during compile time. I am forced to use the verbose...
During the migration from Xamarin to Avalonia I experienced this issue: When I keep using the 2009 reference (as it was working fine in the Xamarin project) `xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"` it throws...
Emit `DynamicDependency` for `CompiledAvaloniaXaml.*` on program entry point to prevent from trimming when compile against net5.0+. For example, ```csharp [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(CompiledAvaloniaXaml.!AvaloniaResources))] [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(CompiledAvaloniaXaml.!EmbeddedResource))] [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(CompiledAvaloniaXaml.!IndexerAccessorFactoryClosure))] [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(CompiledAvaloniaXaml.!XamlLoader))] [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(CompiledAvaloniaXaml.XamlIlContext))] [DynamicDependency(DynamicallyAccessedMemberTypes.All,...
I try to run BasicCompilerTests in my .net 5.0 project: ``` XamlParserTests.BasicCompilerTests test = new XamlParserTests.BasicCompilerTests(); test.Compiler_Should_Compile_Simple_Xaml(false); ``` Got the `unable to resolve type system.uri` error.
Hello! Now that the tests are almost restored (#31), we can try refactoring the test code. This PR suggests doing it: - removes visibility for VS and `dotnet test` tests...
For typed Avalonia bindings, I want to be able to replace an e.g. `TemplateBinding` with an instance of `TemplateBinding`. These values will be bound by calling different methods, so we...
## What does the pull request do? This PR changes praser from XDocument to Microsoft.GuiLabs.Xml Further improvements are required to make it usable in language server. The only thing I...
Hi, thank you for this library. Consider the following situation: ```csharp class Base { [Content] public Base[] BaseProp { get; } } class Derived : Base { [Content] public Base[]...
## What does the pull request do? This PR allow compiler to report errors in non-strict mode Also removes some unnecessary parameters (old members are obsoleted). ## What is the...