Пример #1
0
            int IndexOfCellAtX(nfloat x)
            {
                var cell = ((NSPathCell)Cell).GetPathComponent(new CGPoint(x, Frame.Height / 2), Frame, this);
                var i    = PathComponentCells.IndexOf(cell);

                if (i > -1)
                {
                    i = VisibleCellIds [i];
                }
                return(i);
            }
Пример #2
0
 bool UpdateNextCellForResponderChain(int fromPosition)
 {
     for (focusedCellIndex = fromPosition; focusedCellIndex < Cells.Length; focusedCellIndex++)
     {
         var cell = Cells [focusedCellIndex].Cell;
         if (PathComponentCells.Contains(cell) && cell.Enabled)
         {
             return(true);
         }
     }
     return(false);
 }
Пример #3
0
 bool UpdatePreviousCellForResponderChain(int fromPosition)
 {
     for (focusedCellIndex = fromPosition; focusedCellIndex >= 0; focusedCellIndex--)
     {
         var cell = Cells [focusedCellIndex].Cell;
         if (PathComponentCells.Contains(cell) && cell.Enabled)
         {
             return(true);
         }
     }
     return(false);
 }