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.

Show MenuItem with Tap

bublen1984bublen1984 Member
edited April 2020 in Xamarin.Forms

I'm developing cross platform app with Xamarin Forms. I'm wondering if there's an easy way to show MenuItem in a listView with a single tap on a cell. Now of course, my MenuItem is displayed when user swipes to left, but I would like to show menu when user just tap on a cell. How can I do that? I tried to translate ViewCell but, even if translation works, nothing appears. Have I to make something custom? Maybe is it possible to "force" a left swipe when user taps on a cell? I tried to find some reference on web and documentation but found nothing

very easy code for MenuItem implementation

        <MenuItem Text="Delete" Clicked="DeleteElement" x:Name="menuItem"/>

code for ViewCell translation:

await viewCell.View.TranslateTo(-100, 0, 250, Easing.SinIn);

Thanks guys


Sign In or Register to comment.