Show Transparent Dragged Item

6 posts, 0 answers
  1. Balaram Barange
    Balaram Barange avatar
    28 posts
    Member since:
    Apr 2009

    Posted 09 Mar 2010 Link to this post

    Hi,
    I am working with multiple items drag and drop. My problem is that when i dragged multiple items(say 5-6) and move the mouse over the destinaltion i am unable to see the destination because the dragged items are not transparent and it is diffcult to know the exact position of the drop.
    Could you please suggest me the solution or some work around.

    Thanks
    Balaram
  2. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 10 Mar 2010 Link to this post

    Hello Balaram Barange,

    You can try to set Opacity = .5 for example to the dragging visual objects so they're going to be half transparent.
    Please let us know if this works for you.

    Best wishes,
    Miro Miroslavov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Balaram Barange
    Balaram Barange avatar
    28 posts
    Member since:
    Apr 2009

    Posted 10 Mar 2010 Link to this post

    Hi,
    I am not getting wich element's Opacity property should be set. In OnDragQuery i am setting the e.source's Opacity property and it set the peropet which is in the tree.

    Thanks
    Bala
  5. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 11 Mar 2010 Link to this post

    Hello Balaram Barange,

    In your OnDragQuery handler you should set Opacity = .5 to the e.Options.DragCue visual element - the element that is dragged visually.
    Please let me know if this works for you.

    Regards,
    Miro Miroslavov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  6. Balaram Barange
    Balaram Barange avatar
    28 posts
    Member since:
    Apr 2009

    Posted 11 Mar 2010 Link to this post

    Hi,
    In my OndragQuery event,  e.Options.DragCue is null.
    what should i do?

    Thanks
    Bala
  7. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 11 Mar 2010 Link to this post

    Hi Balaram Barange,

    Ok, so you can do this in the OnDragInfo handler, but check if the status is DragInProgress, in this event handler the e.Options.DragCue won't be null.

    Kind regards,
    Miro Miroslavov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top
UI for WPF is Visual Studio 2017 Ready