private void HandleDrag(DragEventArgs e) { DragLayer.UpdateAdornerPosition(e); if (e.Data.GetDataPresent(DataFormats.FileDrop)) { e.Effects = DragDropEffects.Link; } else { DataSourcesControl.Instance?.HandleDrag(e); } e.Handled = true; }
public void HandleDrag(DragEventArgs e) { DragLayer.UpdateAdornerPosition(e); DropInfo dropInfo; if (IsValidDrop(e, out dropInfo)) { DragLayer.AdornDropTarget(dropInfo); e.Effects = DragDropEffects.Move; e.Handled = true; } }