예제 #1
0
 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;
 }
예제 #2
0
        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;
            }
        }