Open WilhelmJP opened 1 month ago
The problem was that the type Avalonia.Data.Binding could not be found. Therefore, I changed my code and added the line
var _ = typeof(Binding);
before the Parse method is called and everything works fine. Maybe someone knows a better solution.
Describe the bug
In the shared project I tried to parse a xaml string in the MainView class. The called Parse method throw an InvalidCastException: Unable to cast object of type 'XamlX.Ast.SkipXamlValueWithManipulationNode' to type 'XamlX.Ast.IXamlAstPropertyReference'. The code is:
To Reproduce
Generate the solution with dotnet new avalonia.xplat -m CommunityToolkit -o ElvisUltra.Clients install package Avalonia.Markup.Xaml.Loader Change the MainView constructor as described. Start Debug.
Expected behavior
Should Parse without exception.
Avalonia version
11.1.3
OS
Windows
Additional context
No response