[UWP]在Windows 10 Mobile中不会触发拖放事件 [英] [UWP]Drag and drop events are not fired in windows 10 Mobile

查看:81
本文介绍了[UWP]在Windows 10 Mobile中不会触发拖放事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

虽然我已将CanDrag和AllowDrop设置为控件,但事件拖动进入,不会触发拖放。此问题发生在手机中。我的要求是,将UIElement从一个ItemsControl拖到另一个。我试过操作
事件。但是我无法在操作delta事件中获得当前指针位置。 

Though I have set the CanDrag and AllowDrop to the control, the events drag enter, drag over and drop are not fired. This issue is occurred in phone. My requirement is, to drag the UIElement from one ItemsControl to another. I have tried with manipulation events. But I could not get the current pointer position in manipulation delta event. 

提前感谢...

推荐答案

你好sumathi J,

Hello sumathi J,

欢迎来到开发通用Windows应用论坛! 

请阅读粘性帖子,特别是  发布指南:主题行标签   Windows 10 SDK和工具的已知
问题 

Please read the sticky posts, especially the Guide to posting: subject line tags and Known Issues for Windows 10 SDK and Tools .

您的意思是想要重新订购商品吗?请参阅此博客,检查您是否遗漏了任何内容:

Do you mean you want to reorder items? Please check whether you've missed anything by refer to this blog:

http://blog.jerrynixon.com/2013/06/walkthrough-reordering-items-in.html

那么也许你需要检查那些四个重要的事情,例如
CanReorderItems属性

Then maybe you need to check those four important things, for example the CanReorderItems property

如果您确定已经按照上述文章进行操作但仍然无效,请与我们分享一个简单的复制样本向我们展示您的代码。然后还向我们展示移动版本,以便我们对其进行测试。

If you are sure that you've followed the above article and it still does not work, please share us a simple repro sample to show us your code. Then also show us the Mobile version, so that we can test for it.

顺便提一下,请确保您已阅读上述
CanReorderItems属性,
也许在手机上你需要触摸互动( IsSwipeEnabled )。

By the way, please make sure you've read the remarks from the above CanReorderItems property, maybe on the phone you need touch interactions(IsSwipeEnabled ).

祝你好运,

Barry


这篇关于[UWP]在Windows 10 Mobile中不会触发拖放事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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