Forum Xamarin.Forms


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Hide or Cancel context action on List View


When using context menu in list view (Xamarin Forms), when user long press item, it shows Context action menu bar.

If user don't want to take any action, then can click the back arrow button on top (at context action bar itself).

How to hide context action menu bar or cancel if user click outside context menu bar i-e- any where on screen or any other list view item


Best Answer


  • Amit_Malhi01Amit_Malhi01 Member ✭✭

    Disable Context Action click


  • toughcannytoughcanny Member ✭✭

    Hi @ColeX

    Thanks It works only when we click outside listview (that transparent button appears below listview)
    It wouldn't work when we click any where on screen, for example clicking an item on list view item should close that.

  • ColeXColeX Member, Xamarin Team Xamurai
  • toughcannytoughcanny Member ✭✭

    Thanks @ColeX

    The difference was that listview was inside StackLayout, after moving it to inside Grid it Works.

Sign In or Register to comment.