我无法在 Xamarin Mobile 应用程序中实现 MouseUp、MouseDown 和 mouseMove 事件 [英] I am not able to implement MouseUp, MouseDown and mouseMove Events in Xamarin Mobile applications

查看:45
本文介绍了我无法在 Xamarin Mobile 应用程序中实现 MouseUp、MouseDown 和 mouseMove 事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只为 Slider 控件定义了 valueChanged 事件,我需要开发 mousedown、mouseup 和 Mousemove 事件.当用户点击滑块时,它应该在视图上显示鼠标向上"、鼠标向下".但我无法开发该实现.非常感谢任何代码帮助.

There is only valueChanged Event defined for Slider control, I need to develop mousedown,mouseup and Mousemove events. When a user clicks on the slider, on the view it should display "Mouse is up", "Mouse is down". But I can't able to develop that implementation.Any code help is greatly appreciated.

推荐答案

移动端没有鼠标,所以不会有鼠标事件.

There is no mouse in mobile, therefore there will not be any mouse events.

你必须寻找GestureRecognizers,你可以添加TapGestureRecognizer、pan、pinch等来获取事件.

You have to look for GestureRecognizers, you can add TapGestureRecognizer, pan, pinch etc and so on to get events.

这篇关于我无法在 Xamarin Mobile 应用程序中实现 MouseUp、MouseDown 和 mouseMove 事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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