Andrew Skalkin
Andrew Skalkin

Reputation: 387

Silverlight toolkit - intercepting drag start

I can't find a way to intercept the beginning of the drag operation in SLToolkit; I need that in order for my custom controls to indicate the regions where the item could be dropped. Unfortunately, there is no IsDragInProgressChanged event; I looked at the sources and the only way I found was to subclass all DragDropTarget<,>s and override OnItemDragStarting method, which, in my opinion, is way too complicated and intrusive. Anyone knows of a better method?

Upvotes: 2

Views: 252

Answers (1)

YeahStu
YeahStu

Reputation: 4052

Both the PanelDragDropTarget and ListBoxDragDropTarget have an event named ItemDragStarting. Adding an event handler in the XAML and handling it in the code-behind should be all you need.

Upvotes: 1

Related Questions