Windows 8拖放 [英] Windows 8 drag and drop
本文介绍了Windows 8拖放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何启用我的图块(Windows 8应用程序)以启用拖放功能。我希望我的瓷砖可以在gridview中拖放。有没有办法让我能够启用它。我发现了一个帖子( http://www.progware.org/Blog/post/Drag-and-Drop-in-WinJSUIListView-for-repositioning-items-in-Windows-Store-Apps.aspx [ ^ ])带有演示编程,但它不起作用。我在javascript和html5工作。 WinJS是否允许我们做这样的事情
How can i enable my tiles(Windows 8 Apps ) to enable drag and drop. I want my tiles can be dragged and dropped within a gridview. Is there a way I can enable it. I found a post (http://www.progware.org/Blog/post/Drag-and-Drop-in-WinJSUIListView-for-repositioning-items-in-Windows-Store-Apps.aspx[^]) with a demo prog, but it is not working. I am working in javascript and html5. Does WinJS allow us to do such thing
推荐答案
以下是这样做的方法XAML和C#:
http://blogs.msdn.com/b/going_metro/archive/2012/07/16/drag-and-drop-within-a-grouped- grid-view.aspx [ ^ ]
实现效果的关键三个属性是:
CanDragItems =True
CanReorderItems =True
AllowDrop =True。
JavaScript应提供相同的属性。
谢谢,
Frank
// Frank La Vigne / US Public S. ector Developer Evangelist
// 30启动注册http://bitly.com/30ToLaunchWin8
// @tableteer / http://www.FranksWorld.com
Hi,
Here is how this is done in XAML and C#:
http://blogs.msdn.com/b/going_metro/archive/2012/07/16/drag-and-drop-within-a-grouped-grid-view.aspx[^]
The key three properties to achieve the effect are these:
CanDragItems="True"
CanReorderItems="True"
AllowDrop="True".
The same properties should be available from JavaScript.
Thanks,
Frank
// Frank La Vigne / US Public Sector Developer Evangelist
// 30 To Launch Sign up at http://bitly.com/30ToLaunchWin8
// @tableteer / http://www.FranksWorld.com
我是你提到的链接的作者。我再次测试了演示程序(下载并运行它)并正确执行。问题是什么?
I am the writer of the link you are mentioning. I have tested again the demo program (downloaded it and run it) and it executes correctly. What is the issue?
这篇关于Windows 8拖放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文