コード例 #1
0
        /// <summary>
        /// Applies the default styles to EZRow concrete.
        /// </summary>
        /// <param name="ezRow">The EZRow.</param>
        /// <param name="cell">The cell.</param>
        /// <returns></returns>
        protected virtual UITableViewCell ApplyDefaultStyleToEZRowConcrete(EZRow ezRow, UITableViewCell cell)
        {
            if (ezRow.Image != null)
            {
                cell.ImageView.Image = ezRow.Image;
            }

            return(cell);
        }
コード例 #2
0
 /// <summary>
 /// Will apply the cell reuse identifier to the row.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="row">The row.</param>
 /// <param name="getCellReuseIdentifierFunc">The get cell reuse identifier function.</param>
 /// <returns></returns>
 public static EZRow <T> WithCellReuseIdentifier <T>(this EZRow <T> row, Func <T, string> getCellReuseIdentifierFunc)
 {
     row.GetCellReuseIdentifierFunc = getCellReuseIdentifierFunc;
     return(row);
 }
コード例 #3
0
 /// <summary>
 /// Will add an image to the row.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="row">The row.</param>
 /// <param name="image">The image.</param>
 /// <returns></returns>
 public static EZRow <T> WithImage <T>(this EZRow <T> row, UIImage image)
 {
     row.Image = image;
     return(row);
 }