I have a Syncfusion SfRating control on my xamarin forms view. I want to handle ValueChanged event in Prism ViewModel.
View Model C# :
RatingValueChanged = new BitDelegateCommand(async () =>
{
await _pageDialogService.DisplayAlertAsync("", "RatingValueChanged", ErrorMessages.Ok);
});
But an Exception accurs : System.ArgumentException: Expression of type 'Syncfusion.SfRating.XForms.ValueEventArgs' cannot be used for parameter of type 'System.EventArgs' of method 'Void Invoke(System.Object, System.EventArgs)' Parameter name: arg1
What's wrong? How can I send ValueChangedEventArgs e parameter of event to command?