Disable Paging On Tabbed Page / Enable ViewCell Context Actions

Hi all,

I have a Xamarin Forms app with a Tabbed Page. I disabled swiping to change from page to page via:

On<Xamarin.Forms.PlatformConfiguration.Android>().SetIsSwipePagingEnabled(false);

The problem I am facing now is that one of the pages contains a ListView which I want to enable ContextActions on it ViewCell(s) to be able to delete with a swipe left.

<ViewCell.ContextActions>
    <MenuItem 
         Command="{Binding Path=BindingContext.Delete, Source={x:Reference Name=MyPageName}}"
         CommandParameter="{Binding .}"
         Icon="trash.png"
         Text="Delete" 
         IsDestructive="True" />
 </ViewCell.ContextActions>

For some reason these two are conflicting and I cant get the swipe left on the ListView to work.

Has anyone face this issue? Any help will be greatly appreciated.

Regards

Answers

Sign In or Register to comment.