Drag/drop from a listbox in one window to a target in a another (owner) window

2 posts, 0 answers
  1. Ken
    Ken avatar
    8 posts
    Member since:
    Jun 2009

    Posted 20 Oct 2009 Link to this post

    I have a tool window (based on System.Windows.Window) which floats on top of my main window.  The tool window has a listbox with items I want to drag to various parts of the main window.

    I can initiate a drag operation, but as soon as the mouse gets to the border of the tool window, the drag image gets stuck while the mouse moves on.  My targets never receive any QueryDrop events.

    This project is being developed using Prism.  On the Silverlight side, I have a similar tool list hosted in a RadWindow, and drag/drop works great.  I've also tried using RadWindow on the WPF side, but I still have the same problem.

    This is the trial version of Telerik.Windows.Controls.dll - Version 2009.2.724.1020

    Thanks for you help!

  2. Miroslav
    Miroslav avatar
    922 posts

    Posted 23 Oct 2009 Link to this post

    Hi Ken,

    This is a known limitation for the current implementation of the WPF DragDrop. It uses adorners and the "span" of the adorners is limited to the current window.

    We use this implementation because there is a bug in the WPF popups where you cannot open a large popup that covers your screen (you can try to open a popup that covers your screen and you will see the result).

    Therefore we cannot show the DragCues across windows and dragging across windows is currently not supported.

    Unfortunately we have not found a workaround for the Q3 release of the controls and I reckon that in this case it will be best to use the WPF built-in DragDrop which works across windows.

    All the best,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top