Since Q3 2010 we have introduced new drag mode, enabling native drag from and to your WPF applications. In this post I will show how to successfully perform drag drop operations from external program into your application through the RadDragAndDropManager API.
This can be achieved in several easy steps:
1. Set RadDragAndDropManager.EnableNativeDrag=”true”. This will enable native operations (if your application runs in full trust). The easiest way to do this is set it in StartUp event.
and add the corresponding code within DropQuery and DropInfo
In the attached sample I have added RadGridView as well as RadTreeListView, that accepts files from the file system.
Tsvyatko Konov is software developer in Telerik Windows 8 product team. You can follow him on Twitter @tsvyatco and his personal blog at www.konov.me
Copyright © 2017, Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.