To perform drag-and-drop operations within Windows-based applications you must handle a series of events, most notably the DragEnter
, and DragDrop
events. A sample approach is demonstrated in the following article: https://docs.microsoft.com/en-us/dotnet/framework/winforms/advanced/walkthrough-performing-a-drag-and-drop-operation-in-windows-forms
offers the X,Y
values in screen coordinates. You can calculate the drop location within the control's bounds by using the PointToClient
private void radPanel1_DragDrop(object sender, DragEventArgs e)
Point screenDropLocation = new Point(e.X, e.Y);
Point dropLocation = this.radPanel1.PointToClient(screenDropLocation);
Console.WriteLine("Screen drop location :" + screenDropLocation+ " Control drop location:" +dropLocation);
There is no specific event for moving the dragged RadPanel
. However, if you need to simulate animation effect, I would recommend you to have a look at the following help article which demonstrates the available options in the Telerik Presentation Framework: https://docs.telerik.com/devtools/winforms/telerik-presentation-framework/animations
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Dess | Tech Support Engineer, Sr.
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.