Xamarin.forms Xamarin表单-在iOS上通过滑动删除

Xamarin.forms Xamarin表单-在iOS上通过滑动删除,xamarin.forms,Xamarin.forms,因此,我在iOS上实现了“刷到删除”功能,在Android上实现了“长按到删除”功能,除了在iOS上刷一个单元格并单击“删除”按钮后,当另一个单元格被刷时弹出警报,我会显示警报以确认用户是否要删除项目#XYZ。 有什么建议可以解决吗 XAML: <ViewCell.ContextActions> MenuItem CommandParameter="{Binding .}" Text="Delete" IsDestructive="True" Command="{Binding Pa

因此,我在iOS上实现了“刷到删除”功能,在Android上实现了“长按到删除”功能,除了在iOS上刷一个单元格并单击“删除”按钮后,当另一个单元格被刷时弹出警报,我会显示警报以确认用户是否要删除项目#XYZ。 有什么建议可以解决吗

XAML:

<ViewCell.ContextActions>
MenuItem CommandParameter="{Binding .}" Text="Delete" IsDestructive="True" Command="{Binding Path=BindingContext.DeleteCommand, Source={x:Reference Name=ListPage}}"
</ViewCell.ContextActions>
string Msg = string.Format("Delete item {0}?", selectedItem.ItemNumber); 
var answer = await App.Current.MainPage.DisplayAlert(App.ResourceContainer.GetString("Confirmation_Message"),
Msg,
App.ResourceContainer.GetString("Yes"),
App.ResourceContainer.GetString("No"));