public override void Draw(RectangleF rect) { if (_Cell != null) { CGContext context = UIGraphics.GetCurrentContext(); CGPath path; var borderRect = rect; if (_Cell.TableView.Style == UITableViewStyle.Grouped) { borderRect = _Cell.CalculateInnerRect(); path = _Cell.GetCellBorderPath(borderRect); } else { path = new CGPath(); path.AddRect(borderRect); } context.AddPath(path); _Cell.Element.Theme.DisabledColor.SetFill(); context.DrawPath(CGPathDrawingMode.Fill); } }
public DisabledCellView(UITableViewElementCell cell) : base(cell.Bounds) { BackgroundColor = UIColor.Clear; Opaque = false; if (cell != null) { _Cell = cell; Bounds = _Cell.CalculateInnerRect(); } }
public DisabledCellView(UITableViewElementCell cell) : base(cell.Bounds) { BackgroundColor = UIColor.Clear; Opaque = false; if(cell != null) { _Cell = cell; Bounds = _Cell.CalculateInnerRect(); } }