MouseMove() 공개 메소드

public MouseMove ( System.Windows.Input.MouseEventArgs e ) : void
e System.Windows.Input.MouseEventArgs
리턴 void
예제 #1
0
 private void Image_MouseMove(object sender, MouseEventArgs e)
 {
     if (_dragSurface.IsMouseMoveStartingDrag(e))
     {
         var obj = PlotClipboardData.ToDataObject(Model.Device.DeviceId, Model.Device.ActivePlot.PlotId);
         DragDrop.DoDragDrop(this, obj, DragDropEffects.Copy | DragDropEffects.Move);
     }
     else
     {
         _dragSurface.MouseMove(e);
     }
 }
예제 #2
0
 private void Image_MouseMove(object sender, MouseEventArgs e)
 {
     if (_dragSurface.IsMouseMoveStartingDrag(e))
     {
         var data = PlotClipboardData.Serialize(new PlotClipboardData(Model.Device.DeviceId, Model.Device.ActivePlot.PlotId, false));
         var obj  = new DataObject(PlotClipboardData.Format, data);
         DragDrop.DoDragDrop(this, obj, DragDropEffects.Copy | DragDropEffects.Move);
     }
     else
     {
         _dragSurface.MouseMove(e);
     }
 }
예제 #3
0
 private void HistoryListView_MouseMove(object sender, MouseEventArgs e)
 {
     if (_dragSurface.IsMouseMoveStartingDrag(e))
     {
         var plots = (DataContext as IRPlotHistoryViewModel)?.SelectedPlots?.Select(x => x.Plot).ToArray();
         if (plots != null && plots.Length > 0)
         {
             var obj = PlotClipboardData.ToDataObject(plots);
             DragDrop.DoDragDrop(HistoryListView, obj, DragDropEffects.Copy | DragDropEffects.Move);
             return;
         }
     }
     _dragSurface.MouseMove(e);
 }
예제 #4
0
 private void HistoryListView_MouseMove(object sender, MouseEventArgs e)
 {
     if (_dragSurface.IsMouseMoveStartingDrag(e))
     {
         var entry = GetSourceListViewItem((DependencyObject)e.OriginalSource)?.DataContext as IRPlotHistoryEntryViewModel;
         if (entry != null)
         {
             var data = PlotClipboardData.Serialize(new PlotClipboardData(entry.Plot.ParentDevice.DeviceId, entry.Plot.PlotId, false));
             var obj  = new DataObject(PlotClipboardData.Format, data);
             DragDrop.DoDragDrop(HistoryListView, obj, DragDropEffects.Copy | DragDropEffects.Move);
             return;
         }
     }
     _dragSurface.MouseMove(e);
 }