Currently when I drag n drop files into my ListBox using the Window_Drop
event I have this code.
string[] files = (string[]) e.Data.GetData(DataFormats.FileDrop, true);
listBox.Items.Add(files);
Which works fine in WinForm it prints out the path of the file I just dragged and dropped into it as a item to the ListBox.
However when I do the same thing in WPF I get this
String[] Array
as an output instead of the path.
Now I know that code from WinForm doesn't exactly transfer over to WPF but I would guess it's pretty similar?
How do I correctly drag and drop an item to the ListBox with it showing the path of the file?