public bool IsIn(TPoint pos) { if ( pos.IsIn( new Rect(AbsolutePosition, m_anchor.Bmp.Width, m_anchor.Bmp.Height) ) ) { return true; } return false; }
public override ControlBase GetControlByPoint(TPoint position) { if (position.IsIn(Rect)) { foreach (ControlBase child in m_layeredCollection) { ControlBase controlUnderPos = child.GetControlByPoint(position); if (controlUnderPos != null) return controlUnderPos; } return this; } return null; }
public virtual ControlBase GetControlByPoint(TPoint position) { if (position.IsIn(Rect)) return this; return null; }