Пример #1
0
        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);
        }
Пример #2
0
        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;
        }