Source/NFX.WinForms/Elements/ElementHostControl.cs
/// <summary>
/// Finds an element (if any) which is clickable at a certain point
/// </summary>
Finds an element (if any) which is clickable at a certain point
Finds an element ( if any ) which is clickable at a certain point
public Element GetClickableElementAt(Point point)
      {
        foreach (Element elm in GetElementsInRegion(new Rectangle(point, new Size(1,1)), ElementZOrder.TopToBottom))
        {
          if (elm.Visible)
          {
            if (!elm.Enabled) break;
            if (!elm.MouseTransparent) return elm;
          }
        }
        return null;
      }
public Element GetClickableElementAt ( Point point ) { foreach ( Element elm in GetElementsInRegion ( new Rectangle ( point , new Size ( 1 , 1 ) ) , ElementZOrder . TopToBottom ) ) { if ( elm . Visible ) { if ( ! elm . Enabled ) break ; if ( ! elm . MouseTransparent ) return elm ; } } return null ; }
Finds an element (if any) which is clickable at a certain point
Finds an element ( if any ) which is clickable at a certain point
point
Point