SuggestDock() public method

public SuggestDock ( Point cursorPosition, FloatPanel activePanel ) : void
cursorPosition Point
activePanel FloatPanel
return void
Exemplo n.º 1
0
        protected override void OnMove(EventArgs e)
        {
            base.OnMove(e);
            var cursorPosition = new Point(Cursor.Position.X - Owner.Left, Cursor.Position.Y - Owner.Top);

            //System.Diagnostics.Debug.Write(cursorPosition.X + "," + cursorPosition.Y + Environment.NewLine);

            TopMost = true;
            if (_dragging)
            {
                LayoutHandler.SuggestDock(cursorPosition, this);
            }
        }