This is a migrated thread and some comments may be shown as answers.

Drag&Drop for Non-WinForms (WPF) Elements

1 Answer 45 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 06 Jan 2020, 03:19 PM

Hello,

we use WinForms-Controls in our application and want to drop a WPF-Control to it (Listview or Panel).

But we don´t get the Drop-Event to it. :-(

In WinForms the DragEventArgs are in the namespace "System.Windows.Forms" and in WPF it is only "System.Windows", maybe this is the problem!?

Another problem: When we use a non-Telerik-form we can handle the Drop-Event but we can´t access the data from e.Data.GetData(...

It´s always null. Is there a way to control the data which is used for Drag&Drop?

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 07 Jan 2020, 11:12 AM
Hello, Martin,   

According to the provided information, it seems that you want to drag a WPF control and drop it into a WinForms control. This seems more like a general programming question than related to the Telerik UI for WinForms suite. After some research in forums like StackOverflow and MSDN I have found the following thread which may be useful for achieving your custom requirement:
https://stackoverflow.com/questions/41349364/drag-events-swallowed-by-a-hosted-wpf-control-in-its-winforms-parent 

I hope this information helps.  

 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
Martin
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or