Xaml Xamarin表单listview上下文操作不';我无法处理细节

Xaml Xamarin表单listview上下文操作不';我无法处理细节,xaml,xamarin.forms,Xaml,Xamarin.forms,我使用带有菜单上下文操作的XF listview和点击选择的viewcell。 当我实现TapGestureReconizer时,上下文操作不起作用 我的代码在这里: <ListView x:Name="PaymentCardsListView" CachingStrategy="RecycleElement" ItemsSource="{Binding PaymentCardsList}" SelectedItem="{Bindin

我使用带有菜单上下文操作的XF listview和点击选择的viewcell。 当我实现TapGestureReconizer时,上下文操作不起作用

我的代码在这里:

    <ListView x:Name="PaymentCardsListView"
        CachingStrategy="RecycleElement"
        ItemsSource="{Binding PaymentCardsList}"
        SelectedItem="{Binding SelectedPaymentCard, Mode=TwoWay}">
        <ListView.ItemTemplate>
            <DataTemplate>
                <ViewCell>
                    <ViewCell.ContextActions>
                        <MenuItem Command="{Binding Path=BindingContext.EditCommand, Source={x:Reference PaymentCardsListView}"
                            CommandParameter="{Binding .}"
                            Text="Edit"/>
                        <MenuItem Command="{Binding Path=BindingContext.DeleteCommand, Source={x:Reference PaymentCardsListView}"
                            CommandParameter="{Binding .}"
                            IsDestructive="true"
                            Text="Delete"/>
                    </ViewCell.ContextActions>
                    <StackLayout Orientation="Horizontal">
                        <StackLayout.GestureRecognizers>
                            <TapGestureRecognizer Command="{Binding Path=BindingContext.DetailCommand, Source={x:Reference PaymentCardsListView}"
                                CommandParameter="{Binding .}"/>
                        </StackLayout.GestureRecognizers>
                        <StackLayout Orientation="Vertical">
                            <Label Text="{Binding Name}"/>
                            <Label Text="{Binding Number}"/>
                            <StackLayout Orientation="Horizontal">
                                <Label Text="Expiry Date: "/>
                                <Label Text="{Binding ExpMonth}"/>
                                <Label Text="/"/>
                                <Label Text="{Binding ExpYear}"/>
                            </StackLayout>
                        </StackLayout>
                    </StackLayout>
                </ViewCell>
            </DataTemplate>
        </ListView.ItemTemplate>
    </ListView>

我需要使用上下文菜单和堆栈布局点击。 我应该如何实现这一点

它在iOS上工作。
这个问题只在Android上出现。

我在bugzilla上发现了已确认的bug

我在考虑穿行。
其中之一是为android的view cell创建自定义渲染器,并覆盖LongPress以显示自定义菜单

如果你找到了解决方案,你可以接受自己的答案。