Avalonia UI: Issue with code generation - C#