我可以从 ManipulationEnabled 中排除拇指吗?
我有 FrameworkElements,其 IsManipulationEnabled 设置为 true,工作得很好,但是,我的情况存在一个问题,即 FrameworkElements 样式的拇指大小已调整。
我需要将拇指从触摸操作中排除,因为当前当用户用手指移动拇指时,所有形状都会移动,而不是通过拇指处的拖动增量来调整其大小。
我尝试将 IsManipulationEnabled= false 放在拇指的构造函数中,但是,它不起作用。
有什么想法吗?
I have FrameworkElements that have IsManipulationEnabled set to true, that's working nicely, but, there is an issue at my case, its that there is resizing thumbs at the FrameworkElements style.
I need to exclude the thumbs from touch manipulation, because currently when the user moves the thumb with his finger, all the shape is moved instead of resizing it with drag delta at the thumb.
I tried to put IsManipulationEnabled= false at the constructor of the thumbs, but, it didn't work.
Any idea please ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经解决问题了!讽刺的是,我已将拇指设置为 true,然后在拇指内部设置 I:
就是这样
现在,形状样式中的拇指接收来自触摸的鼠标事件,并且形状接收操作事件:-)
I've solve the issue! Ironically, I have set
IsManipulationEnabled
for thumbs to true, then inside thumbs I:that's it
Now, thumbs within shape style receive mouse events from touch, and the shape receives manipulation events :-)