/// <summary> /// Find the view that contains the specified point. /// </summary> /// <param name="pt">Point in view coordinates.</param> /// <returns>ViewBase if a match is found; otherwise false.</returns> public override ViewBase ViewFromPoint(Point pt) { // If we contain a child view if (_viewChild != null) { // Is the point inside this controls area? if (ClientRectangle.Contains(pt)) { // Convert to contained view coordinates return(_viewChild.ViewFromPoint(new Point(pt.X - ClientLocation.X, pt.Y - ClientLocation.Y))); } } return(null); }
/// <summary> /// Find the view that contains the specified point. /// </summary> /// <param name="pt">Point in view coordinates.</param> /// <returns>ViewBase if a match is found; otherwise false.</returns> public override ViewBase ViewFromPoint(Point pt) { return(_child.ViewFromPoint(pt)); }