Beispiel #1
0
 public override void Dispose()
 {
     _target     = null;
     _source     = null;
     _activeRect = null;
     base.Dispose();
 }
Beispiel #2
0
 internal BaseDropPanel(IDragTarget target, DragItem source)
 {
     _target = target;
     _source = source;
     //绘制停靠的区域
     _activeRect = new ActiveRectDropVisual(DragManager.NONE);
     AddChild(_activeRect);
 }
Beispiel #3
0
        public void HitTest(Point mouseP, ActiveRectDropVisual activeRect)
        {
            _mouseP          = mouseP;
            _activeRect      = activeRect;
            _activeRect.Flag = DragManager.NONE;
            var p = this.PointToScreenDPIWithoutFlowDirection(new Point());

            p = new Point(mouseP.X - p.X, mouseP.Y - p.Y);
            VisualTreeHelper.HitTest(this, _HitFilter, _HitRessult, new PointHitTestParameters(p));
            _activeRect = null;
        }