public static RepositoryCellView Create() { var cell = new RepositoryCellView(); var views = NSBundle.MainBundle.LoadNib("RepositoryCellView", cell, null); cell = Runtime.GetNSObject(views.ValueAt(0)) as RepositoryCellView; if (cell != null) { cell.Caption.TextColor = Theme.CurrentTheme.MainTitleColor; cell.Caption.Font = CaptionFont; cell.Description.TextColor = Theme.CurrentTheme.MainTextColor; cell.Description.Font = DescriptionFont; cell.Image1.Image = Theme.CurrentTheme.RepositoryCellFollowers; cell.Image3.Image = Theme.CurrentTheme.RepositoryCellForks; cell.UserImage.Image = Theme.CurrentTheme.RepositoryCellUser; if (RoundImages) { cell.BigImage.Layer.MasksToBounds = true; cell.BigImage.Layer.CornerRadius = cell.BigImage.Bounds.Height / 2f; } } //Create the icons return(cell); }
public static RepositoryCellView Create() { var cell = new RepositoryCellView(); var views = NSBundle.MainBundle.LoadNib("RepositoryCellView", cell, null); cell = Runtime.GetNSObject( views.ValueAt(0) ) as RepositoryCellView; if (cell != null) { cell.Caption.TextColor = Theme.CurrentTheme.MainTitleColor; cell.Caption.Font = CaptionFont; cell.Description.TextColor = Theme.CurrentTheme.MainTextColor; cell.Description.Font = DescriptionFont; cell.Image1.Image = Theme.CurrentTheme.RepositoryCellFollowers; cell.Image3.Image = Theme.CurrentTheme.RepositoryCellForks; cell.UserImage.Image = Theme.CurrentTheme.RepositoryCellUser; if (RoundImages) { cell.BigImage.Layer.MasksToBounds = true; cell.BigImage.Layer.CornerRadius = cell.BigImage.Bounds.Height / 2f; } } //Create the icons return cell; }