Tinkr2/4.2/AphelionCore/AphelionCore/Controls/Container.cs
/// <summary>
/// Moves the focus from the active to the previous child.
/// </summary>
/// <remarks>
/// If no child is currently active, the 1st child is gets the active one.
/// </remarks>
Moves the focus from the active to the previous child.
Moves the focus from the active to the previous child .
public virtual void PreviousChild()
      {
         if (_children == null)
         {
            return;
         }
         if (_active == null)
         {
            FocusFirst();
            return;
         }
         int i;
         int ai = ActiveChildIndex();
         if (ai == -1)
         {
            return;
         }
         for (i = ai - 1; i > 0; i--)
         {
            if (_children[i].CanFocus)
            {
               ActiveChild = _children[i];
               return;
            }
         }
         for (i = ai + 1; i < _children.Length; i++)
         {
            if (_children[i].CanFocus)
            {
               ActiveChild = _children[i];
               return;
            }
         }
      }
public virtual void PreviousChild ( ) { if ( _children == null ) { return ; } if ( _active == null ) { FocusFirst ( ) ; return ; } int i ; int ai = ActiveChildIndex ( ) ; if ( ai == - 1 ) { return ; } for ( i = ai - 1 ; i > 0 ; i -- ) { if ( _children [ i ] . CanFocus ) { ActiveChild = _children [ i ] ; return ; } } for ( i = ai + 1 ; i < _children . Length ; i ++ ) { if ( _children [ i ] . CanFocus ) { ActiveChild = _children [ i ] ; return ; } } }
Moves the focus from the active to the previous child.
Moves the focus from the active to the previous child .
remarks
If no child is currently active, the 1st child is gets the active one.
If no child is currently active the 1st child is gets the active one .