예제 #1
0
        internal static void PerformDrag(Point windowPos, Point deltaPoint, DragData data)
        {
            AnyDockManager.RaiseRemovedEvent(data.Element);
            ZOrderWindows = GetZOrderWindows().ToArray();
            var dragWindow = new DraggingWindow(windowPos, deltaPoint, data);

            dragWindow.Draging += OnDraging;
            dragWindow.Draged  += OnDraged;
            dragWindow.Show();
        }
예제 #2
0
 private static void OnDraged(DraggingWindow window, Point screenPos, DragData data)
 {
     ZOrderWindows = null;
     //LoacationChanged(Draging) must happen before DragMove finished(Drop)
     if (LastDragPoint != null)
     {
         ((DraggableTabControl)window.Content).RealChildren.Clear();
         window.Close();
         LastDragPoint.OnDragDrop(data, ((FrameworkElement)LastDragPoint).PointFromScreen(screenPos));
         LastDragPoint = null;
     }
     else
     {
         window.ToNormalWindow();
     }
 }
예제 #3
0
 private static void OnDraging(DraggingWindow window, Point screenPos, DragData data)
 {
     ProbeDrag(screenPos, data);
 }
예제 #4
0
 internal static void PerformDrag(DraggingWindow window)
 {
     ZOrderWindows = GetZOrderWindows().Where(x => x != window).ToArray();
 }