Windows 10 adds support for dragging and dropping content into Universal Windows Apps. This is a feature that was previously only available to Classic Windows Apps (think WPF or WinForms). To get started with Drag/Drop support on your universal app, take a look at this excellent video: https://channel9.msdn.com/Series/A-Developers-Guide-to-Windows-10/22?wt.mc_id=player. Andy talks about drag/drop about 30 minutes in.
Drag/drop is great, but a question came up recently thanks to Lance McCarthy. How does one control the icon and text that shows up as a user is dragging an item into a universal app? Well, I reached out to some folks on the team with that question and the answer proved useful for Lance. That got me thinking. Maybe it would be useful to have that information up here as well 🙂 So here goes.
So there you have it. The shape of the glyph while it’s NOT over a drop target can’t be controlled. I would expect that because Windows doesn’t know what to do with the dragged content yet. But once it’s over a target, it can use the API described above to mess around with the glyph. I hope this helps you if you’ve been looking for more details on drag/drop in Windows 10.
Happy hacking!