Exemple #1
0
 /// <summary>
 /// This is called when the layout system is defining the size and position
 /// of a cell. You could override to perform additional tasks. It is only
 /// called when the cell's frame would change.
 /// </summary>
 /// <remarks>
 /// You can use cell.Position.Tag, cell.Position.Column/Row, or inspect
 /// cell.View's type to do something special based on the cell.</remarks>
 protected virtual void SetCellFrame(Layout.Cell cell, CGRect frame)
 {
     if (cell.View != null)
     {
         if (RoundLayout)
         {
             frame = frame.RoundLocation();
         }
         cell.View.Frame = frame;
     }
 }