I want to use the ItemTapped event of the Syncfusion List View Control in my ViewModel because I am trying to adhere to the MVVM pattern. Also take note that I am using the .Net Community MVVM Toolkit.
This is the signature of the method
private static async void ItemTapped(object sender, ItemTappedEventArgs e)
{
var customer = (Customer)e.Item;
var action= await App.Current.MainPage.DisplayActionSheet("Action", "Cancel", null, "Edit", "Delete");
}
I get the following error message.
Cannot apply [RelayCommand] to methods with a signature that doesn't match any of the existing relay command types. And I am also getting this message that says
'ItemTappedEventArgs' is an ambiguous reference between 'Microsoft.Maui.Controls.ItemTappedEventArgs' and 'Syncfusion.Maui.ListView.ItemTappedEventArgs'