How to update DragVisualOffset while dragging?

2 posts, 0 answers
  1. Nikita
    Nikita avatar
    1 posts
    Member since:
    Aug 2017

    Posted 07 Aug 2017 Link to this post


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

  2. Polya
    Polya avatar
    254 posts

    Posted 09 Aug 2017 Link to this post

    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;

    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.
Back to Top