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

How to update DragVisualOffset while dragging?

1 Answer 71 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Nikita
Top achievements
Rank 1
Nikita asked on 07 Aug 2017, 06:23 AM

Hello,

When I transfer an object to a RadDiagram (when it happens OnDragEnter), I change the size of the DragVisual. How can I update DragVisualOffset?

1 Answer, 1 is accepted

Sort by
0
Polya
Telerik team
answered on 09 Aug 2017, 01:17 PM
Hello Nikita,

You can change the DragVisualOffset in the DragInitialize event as this property is available in the DragInitializeEventArgs. For example:

private void OnDragInitialize(object sender, DragInitializeEventArgs e)
{
    // For example:
    e.DragVisualOffset = e.RelativeStartPoint;
}


Regards,
Polya
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
DragAndDrop
Asked by
Nikita
Top achievements
Rank 1
Answers by
Polya
Telerik team
Share this question
or