I am not able to implement MouseUp, MouseDown and mouseMove Events in Xamarin Mobile applications

自作多情 提交于 2021-01-29 05:29:49

问题


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.


回答1:


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

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



来源:https://stackoverflow.com/questions/37715654/i-am-not-able-to-implement-mouseup-mousedown-and-mousemove-events-in-xamarin-mo

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!