Xamarin形式的SwipeListView [英] SwipeListView in Xamarin Form

查看:106
本文介绍了Xamarin形式的SwipeListView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用xamarin表单开发android应用程序.我们有一个显示项目的列表.客户端要删除项目时要从左向右删除,反之亦然.我有一个适用于xamarin android的链接,我与您共享单击此处. Xamarin表格需要相同的东西.如果有人有任何想法,请与我分享.谢谢.

I am working on android application using xamarin forms. We have a list that is displaying items. Client want to delete the item on swipe, "left to right" vice versa . I have a link that is working for xamarin android that i am share with you Click here . I need same thing for Xamarin form. If anybody have any idea please share with me. Thank you.

推荐答案

当前,Xamarin表单仅支持一组特定的

Currently the Xamarin Forms support only a specific set of gestures. Those are Pan, Tap and Pich. It does not support Swipe.

您可以在本机项目中创建这些事件,然后通过渲染器进行公开.

You can go and create these events in your native projects and expose via a Renderer.

或者您可以使用 MR.Gestures ,其中包含您需要的所有事件.

Or you can use the MR.Gestures which has all the events you need.

XLabs 项目具有可使用的手势.可以在以下论坛线程.

The XLabs project has gestures, which you can use. More discussion about it can be found in this forum thread.

这是一个很好的教程-带有Xamarin.Forms的手势识别器,您可以调查您是否尝试构建自己的手势识别.

This a good tutorial - Gesture Recognizers with Xamarin.Forms you can look into if you are trying to build your own gesture recognizes.

提供了2种好的解决方案-SO问题- Xamarin形式向左滑动/向右滑动.

There is 2 good solutions provided to this SO Question - Xamarin Forms Swipe Left/Swipe Right Gestures.

这篇关于Xamarin形式的SwipeListView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆