private void resultItem_Drop(object sender, DragEventArgs e) { ArchiveItem selectedArchiveItem = (ArchiveItem)(sender as Grid).DataContext; InputDragDrop inputDD = new InputDragDrop(e); if (inputDD.ObjectHasDataPresent == false) { return; } e.Handled = true; vmArchive.ArchiveInput(inputDD, selectedArchiveItem.DirInfo); }
private void Grid_Drop(object sender, DragEventArgs e) { vmSearchPage.UserIsDragging = false; InputDragDrop inputDD = new InputDragDrop(e); if (inputDD.ObjectHasDataPresent == false) { return; } vmSearchPage.AddInput(inputDD); }