UWP – Win10 – Files and Folders P2 – Drag drop elements.

27 בFebruary 2017

In this post we will jump in the real world scenario while user might drag clipboard files over our application pane and we like to copy those files and use them in our application. Drag-Drop: A few technical details. Your Dropping area (the place you attended to release the clipboard file) Should looks like this: <Grid Height="100" Width="100" Background="Red" AllowDrop="True" DragOver="Border_DragOver" Drop="Grid_Drop"/>   I have 3 different parts here, AllowDrop, DragOver handling, & Drop handling. Those are mandatory. The dragOver implementation is kind of : private void Border_DragOver(object sender, DragEventArgs e) { ...
אין תגובות