You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a ListBox which uses a custom item container class (derived from ListBoxItem). After enabling drag and drop for this ListBox (using dd:DragSource = "true" dd:DropTarget = "true") selecting any item was not possible anymore.
The problem is caused by, GetItemContainer not finding my custom derived item container class.
I'd recommend changing GetVisualAncestor not to use "==" for type checking, but using something which is comparable to the "is" operator:
Original author: Jan_Waec...@gmx.de (January 16, 2011 15:53:40)
I have a ListBox which uses a custom item container class (derived from ListBoxItem). After enabling drag and drop for this ListBox (using dd:DragSource = "true" dd:DropTarget = "true") selecting any item was not possible anymore.
The problem is caused by, GetItemContainer not finding my custom derived item container class.
I'd recommend changing GetVisualAncestor not to use "==" for type checking, but using something which is comparable to the "is" operator:
After this change the problem is gone.
Original issue: http://code.google.com/p/gong-wpf-dragdrop/issues/detail?id=30
The text was updated successfully, but these errors were encountered: