I need a ListView with long pressed event handler. When listviewItem is longpressed, an popup should appear for example.
Does anyone knows, if this is possible with xamarin.forms MVVM?
Thanks
CodePudding user response:
There is a known issue about this in xamarin forms, you can check it here: [Enhancement] LongPressGestureRecognizer.
And just as this remark mentioned :
this will probably be in .NET MAUI but won't make it into Xamarin.Forms anymore. If needed check out the Xamarin Community Toolkit or other relevant libraries
But there are several workarounds:
You can refer to article: Longpress Event For Image In Xamarin.Forms.
And you can also check thread : How to make long press gesture in Xamarin Forms?