Drag Drop between winforms and WPF

0 Answers 27 Views
DragAndDrop ScheduleView
Fabrice
Top achievements
Rank 2
Iron
Fabrice asked on 22 Dec 2023, 04:24 PM

Hi,

 I’m trying to handle the drag and drop operation from a winforms control (RadGridView for now, can be RadTreeView or RadListView too) to the RadScheduleView WPF.

 I have overridden the ConvertDraggedData from ScheduleViewDragDropBehavior class.

 The event isn’t firing when I’m dragging a row from my winforms GridView over the schedule.

 Is there a way to convert dragged data from the grid in winforms that make the event fires in WPF?

 Or another way to achieve the expected behavior ?

 Thanks.

 Rémi

Martin Ivanov
Telerik team
commented on 26 Dec 2023, 08:50 AM

I have tested this with a very simple WinForms project with a single button that starts the drag/drop operation, as shown in the following Microsoft article. The drag/drop in the WPF application works properly and the ConvertDraggedData method is called as expected. However, the drag/drop from the WinForms' GridView and ListView doesn't work at all in the WPF application (not only in the context of RadScheduleView for WPF). As a matter of fact, the WinForms controls don't allow drop in any external application. It seems that these implement custom logic that ensures that you cannot drag/drop outside of WinForms. To confirm that, I suggest you to post your question also in the Telerik's WinForms forum

No answers yet. Maybe you can help?

Tags
DragAndDrop ScheduleView
Asked by
Fabrice
Top achievements
Rank 2
Iron
Share this question
or