How to implement drag and drop in a C # windows metro application?

I am developing a metro application for Windows storage in Visual Studio 2012 using C # and XAML

I want to allow the user to drag a button from the selection and drop it in the specified area.

+4
source share
1 answer

See the following:

http://social.msdn.microsoft.com/Forums/windowsapps/en-US/53a42865-6e96-4439-85dd-5e90e0ec8512/drag-and-drop-in-metro-apps

Use the grid template and set CanDragItems = "True" CanReorderItems = "True" and AllowDrop = "True".

A detailed guide can be found here:

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

+7
source

Source: https://habr.com/ru/post/1494727/


All Articles