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.
private void Application_Startup(object sender, StartupEventArgs e)
{
RadDragAndDropManager.EnableNativeDrag = true;
}
2. Set the RadDragAndDropManager properties to enable the drop operation:
telerik:RadDragAndDropManager.AllowDrop="True"
telerik:RadDragAndDropManager.DropQuery="FileListGrid_DropQuery"
telerik:RadDragAndDropManager.DropInfo="FileListGrid_DropInfo"
and add the corresponding...