Ejemplo n.º 1
0
        public override UITableViewCell GetCell(UITableView tv)
        {
            var       key  = GetKey((int)style);
            BadgeCell cell = (BadgeCell)tv.DequeueReusableCell(key);

            if (cell == null)
            {
                cell = new BadgeCell(key);
                cell.SelectionStyle = (Tapped != null) ? UITableViewCellSelectionStyle.Blue : UITableViewCellSelectionStyle.None;
            }
            prepare_cell_method_info.Invoke(this, new object [] { cell });
            //PrepareCell (cell);

            cell.BadgeText      = badgeValue;
            cell.Color          = Color;
            cell.Radius         = Radius;
            cell.HighlightColor = HighlightColor;
            cell.ShowShadow     = Shadow;
            cell.SetNeedsLayout();

            return(cell);
        }
        public override UITableViewCell GetCell(UITableView tv)
        {
            var key = GetKey ((int) style);
            BadgeCell cell = (BadgeCell)tv.DequeueReusableCell (key);
            if (cell == null) {
                cell = new BadgeCell (key);
                cell.SelectionStyle = (Tapped != null) ? UITableViewCellSelectionStyle.Blue : UITableViewCellSelectionStyle.None;
            }
            prepare_cell_method_info.Invoke (this, new object [] { cell });
            //PrepareCell (cell);

            cell.BadgeText = badgeValue;
            cell.Color = Color;
            cell.Radius = Radius;
            cell.HighlightColor = HighlightColor;
            cell.ShowShadow = Shadow;
            cell.SetNeedsLayout ();

            return cell;
        }