Hi.
After dealing with Gong.Solutions DragDrop, i can't find a way to do the whole Drag and Drop package:
1. Drag and drop between controls of the same app
2. Drag and drop from outside application to those same controls. (windows explorer, i.e.)
My app needs some playlist (listviews) capable of rearrange own items, populate other playlists with those items and finally, accepting a drop file from the windows explorer. I don't need to drag the items outside the app.
I've read somewhere here that using the IDropTarget class would do the trick, but i can't find the way to mix both internal & external dropping because Gong.Solution overrides AllowDrop in XAML.
void IDropTarget.DragOver(IDropInfo dropInfo)
{
IDataObject dataObject = (dropInfo.Data as IDataObject);
if (dropInfo.DragInfo != null)
{
GongSolutions.Wpf.DragDrop.DragDrop.DefaultDropHandler.DragOver(dropInfo);
}
else if (dataObject != null && dataObject.GetDataPresent(DataFormats.FileDrop, true))
{
string[] filenames = (string[])dataObject.GetData(DataFormats.FileDrop, true); </pre>
So, the question is: Should i have to move on and discard Gong.Solution easy internal drag drop?
Does anyone knows how to mix both, internal and external drag and drop? Any alternative?
I'm pretty much a newbie in coding, so some example or link could very helpful.
Thank you.