Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 75885

How to close context action via code in xamarin forms

$
0
0

I have created an app in xamarin forms, where I have used Context Actions in a list view item template's ViewCell as:

<ViewCell.ContextActions>
     <MenuItem Clicked="OnActiveJourneyEdit" 
                         Text="Edit"/>
     <MenuItem Clicked="OnActiveJourneyDelete" 
                         Text="Delete" 
                         IsDestructive="True" />
</ViewCell.ContextActions>

While I long press on any item in the list view I get context action items in action bar, and if I do not tap on any option in context action it will not be closed in android. Is there any way so that I can close that context action bar via code in xamarin forms?

Getting issue with context action on android, context menu is remained open while tapping on other buttons on the page, can anyone help to close the context action menus in xamarin forms.

Also please check the link for the same :

http://stackoverflow.com/questions/34057988/how-to-close-context-action-via-code-in-xamarin-forms


Viewing all articles
Browse latest Browse all 75885

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>