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.SeparatorInset = new UIEdgeInsets(0, 56f, 0, 0); cell.Caption.TextColor = Theme.CurrentTheme.MainTitleColor; cell.Description.TextColor = Theme.CurrentTheme.MainTextColor; cell.Image1.Image = Octicon.Star.ToImage(12); cell.Image3.Image = Octicon.RepoForked.ToImage(12); cell.UserImage.Image = Octicon.Person.ToImage(12); 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.SeparatorInset = new UIEdgeInsets(0, 56f, 0, 0); cell.Caption.TextColor = Theme.CurrentTheme.MainTitleColor; cell.Description.TextColor = Theme.CurrentTheme.MainTextColor; cell.Image1.Image = Octicon.Star.ToImage(12); cell.Image3.Image = Octicon.RepoForked.ToImage(12); cell.UserImage.Image = Octicon.Person.ToImage(12); cell.BigImage.Layer.MasksToBounds = true; cell.BigImage.Layer.CornerRadius = cell.BigImage.Bounds.Height / 2f; } //Create the icons return cell; }