public void OnMoved(MouseMotionEvent e) { if (dragging) { NewDimension.X += e.X - px; NewDimension.Y += e.Y - py; } px = e.X; py = e.Y; }
private void Window_MouseMove(object sender, MouseEventArgs e) { MouseMotionEvent me = new MouseMotionEvent(e.X, e.Y, false); OnEvent(me); }