How to update DragVisualOffset while dragging?

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

    Posted 07 Aug Link to this post

    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?

  2. Polya
    Admin
    Polya avatar
    239 posts

    Posted 09 Aug 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;
    }


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