예제 #1
0
        /// <summary>
        /// Perform mouse movement handling.
        /// </summary>
        /// <param name="e">A MouseEventArgs that contains the event data.</param>
        /// <param name="rawPt">The actual point provided from the windows message.</param>
        public virtual void MouseMove(MouseEventArgs e, Point rawPt)
        {
            Debug.Assert(e != null);

            // Validate incoming reference
            if (e == null)
            {
                throw new ArgumentNullException(nameof(e));
            }

            Point pt = new Point(e.X, e.Y);

            // Set the correct active view from the point
            UpdateViewFromPoint(_control, pt);

            // Tell current view of mouse movement
            ActiveView?.MouseMove(rawPt);
        }