How to prevent DragDrop between ListBoxItem

3 posts, 1 answers
  1. Amy
    Amy avatar
    8 posts
    Member since:
    Apr 2007

    Posted 16 Jun 2010 Link to this post

    Hi there,

    I just like my Drop working if the target is inside the same ListBoxItem, not across ListBoxItem.

    For instatnce, I put the the telerik's FirstLook example(aa1:eample) in ListBox:
    <ListBox Grid.Row="1">
    <ListBoxItem Height="250"> <aa1:Example></aa1:Example></ListBoxItem>

    <ListBoxItem> <aa1:Example></aa1:Example>
    </ListBoxItem>

    </ListBox>

    The control will show 2 times, I can drag from ListBoxItem1 and drop to ListBoxItem2.  What I need is drag from ListBoxItem1 and drop the other side of ListBoxItem1, avoid dropping to different ListBoxItem. Is any way to fix that?

    Thanks!

    Amy

  2. Answer
    Viktor Tsvetkov
    Admin
    Viktor Tsvetkov avatar
    382 posts

    Posted 21 Jun 2010 Link to this post

    Hello Amy,

    Attached is a sample project. Review it and tell me if this is what you meant. I prevent dragging from the one ListBoxItem and dropping into the other.

    On a side note, I'd like to inform you that we've just released an online tool that allows you to reduce the size of your Silverilght applications. For more information, please visit http://blogs.telerik.com/blogs/posts/10-06-10/telerik_assembly_minifier.aspx

    Kind regards,
    Viktor Tsvetkov
    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. Amy
    Amy avatar
    8 posts
    Member since:
    Apr 2007

    Posted 24 Jun 2010 Link to this post

    it worked!

    You are the best!

    Thanks!
Back to Top