Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Generation Errors #67

Open
IvanJosipovic opened this issue Oct 14, 2024 · 0 comments
Open

Code Generation Errors #67

IvanJosipovic opened this issue Oct 14, 2024 · 0 comments
Assignees

Comments

@IvanJosipovic
Copy link
Contributor

IvanJosipovic commented Oct 14, 2024

Steps to reproduce:

  • Run dotnet add package Irihi.Ursa --version 1.4.0
  • Run dotnet tool install --global AvaloniaExtensionGenerator --version 11.2.0-beta4
  • Run avalonia-amd-gen

ControlExtensions.Generated\CalendarYearButton_MarkupExtensions.g.cs

Argument 1: cannot convert from 'Ursa.Controls.CalendarYearButtonEventArgs' to 'Ursa.Controls.CalendarDayButtonEventArgs'
//================= Events ======================//
 // ItemSelected

/*ActionToEventGenerator*/
public static T OnItemSelected<T>(this T control, Action<Ursa.Controls.CalendarDayButtonEventArgs> action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Ursa.Controls.CalendarYearButton
{
  control.AddHandler(Ursa.Controls.CalendarYearButton.ItemSelectedEvent, (_, args) => action(args), routes);
  return control;
}

ControlExtensions.Generated\Pagination_MarkupExtensions.g.cs

There is no argument given that corresponds to the required parameter 'arg2' of 'Action<object, ValueChangedEventArgs<int>>'

//================= Events ======================//
 // CurrentPageChanged

/*ActionToEventGenerator*/
public static T OnCurrentPageChanged<T>(this T control, Action<System.Object, Ursa.Controls.ValueChangedEventArgs<System.Int32>> action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Ursa.Controls.Pagination 
{
  control.AddHandler(Ursa.Controls.Pagination.CurrentPageChangedEvent, (_, args) => action(args), routes);
  return control; 
}
@gritsenko gritsenko self-assigned this Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants