The information you provided is not enough for a general solution, however I can suggest that the poroblem is that you are removing the item from the listbox, without checking the DragEffects first, you can try to modify your logic to check if the effects are equal to something that requires the item to be deleted and remove the item only then.
Hope this helps!
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>