private void Window_Drop(object sender, DragEventArgs e)
{
if (e.Data.GetDataPresent(DataFormats.FileDrop))
{
// Note that you can have more than one file.
string[] files = (string[])e.Data.GetData(DataFormats.FileDrop);
if (files.Length == 0) {
return;
}
string data = _seriousBusiness.DataFromFile(files[0]);
_seriousBusiness.DoSendImage(data);
}
}