积极答复者
请教win8应用能否实现将文件拖拽到文件夹中的效果?

问题
答案
-
Hi,
如果是在两个GridView之间拖拽的话,是可以实现的。你需要这样设置:
<GridView x:Name="DragFrom" CanDragItems="True" DragItemsStarting="Event_DragItemsStarting">
<GridView x:Name="DragTo" AllowDrop="True" Drop="Event_Drop">
具体可以看看这两个帖子:
http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/3cef69cd-9de0-42f5-9dce-7bc398c0db7a
Aaron
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已编辑 Aaron XueModerator 2013年4月17日 9:30
- 已标记为答案 远眺的时光 2013年4月18日 1:55
全部回复
-
Hi,
如果是在两个GridView之间拖拽的话,是可以实现的。你需要这样设置:
<GridView x:Name="DragFrom" CanDragItems="True" DragItemsStarting="Event_DragItemsStarting">
<GridView x:Name="DragTo" AllowDrop="True" Drop="Event_Drop">
具体可以看看这两个帖子:
http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/3cef69cd-9de0-42f5-9dce-7bc398c0db7a
Aaron
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已编辑 Aaron XueModerator 2013年4月17日 9:30
- 已标记为答案 远眺的时光 2013年4月18日 1:55
-
Hi,
如果是在两个GridView之间拖拽的话,是可以实现的。你需要这样设置:
<GridView x:Name="DragFrom" CanDragItems="True" DragItemsStarting="Event_DragItemsStarting">
<GridView x:Name="DragTo" AllowDrop="True" Drop="Event_Drop">
具体可以看看这两个帖子:
http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/3cef69cd-9de0-42f5-9dce-7bc398c0db7a
Aaron
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
谢谢了