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(); }
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(); } }
private static void OnDraging(DraggingWindow window, Point screenPos, DragData data) { ProbeDrag(screenPos, data); }
internal static void PerformDrag(DraggingWindow window) { ZOrderWindows = GetZOrderWindows().Where(x => x != window).ToArray(); }