Tinkr2/4.2/AphelionCore/AphelionCore/Controls/Container.cs
/// <summary>
/// Updates the z-index of the specified control so it is rendered on top.
/// </summary>
/// <param name="child">Control to move to the top of the z-index</param>
Updates the z-index of the specified control so it is rendered on top.
Updates the z - index of the specified control so it is rendered on top .
public virtual void BringControlToFront(IControl child)
      {
         int idx = GetChildIndex(child);
         if (idx == -1)
         {
            return;
         }
         var tmp = new IControl[_children.Length];
         int c = 0;
         tmp[c++] = child;
         for (int i = 0; i < tmp.Length; i++)
         {
            if (i != idx)
            {
               tmp[c++] = _children[i];
            }
         }
         _children = tmp;
      }
public virtual void BringControlToFront ( IControl child ) { int idx = GetChildIndex ( child ) ; if ( idx == - 1 ) { return ; } var tmp = new IControl [ _children . Length ] ; int c = 0 ; tmp [ c ++ ] = child ; for ( int i = 0 ; i < tmp . Length ; i ++ ) { if ( i != idx ) { tmp [ c ++ ] = _children [ i ] ; } } _children = tmp ; }
Updates the z-index of the specified control so it is rendered on top.
Updates the z - index of the specified control so it is rendered on top .
//tmp[c] = _children[idx];
child
IControl
Control to move to the top of the z-index
Control to move to the top of the z - index