This is a migrated thread and some comments may be shown as answers.

How to prevent DragDrop between ListBoxItem

2 Answers 58 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Amy
Top achievements
Rank 1
Amy asked on 16 Jun 2010, 07:38 PM

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 Answers, 1 is accepted

Sort by
0
Accepted
Viktor Tsvetkov
Telerik team
answered on 21 Jun 2010, 04:32 PM
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
0
Amy
Top achievements
Rank 1
answered on 24 Jun 2010, 05:06 PM
it worked!

You are the best!

Thanks!
Tags
DragAndDrop
Asked by
Amy
Top achievements
Rank 1
Answers by
Viktor Tsvetkov
Telerik team
Amy
Top achievements
Rank 1
Share this question
or