public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { MessagePageCell cell = tableView.DequeueReusableCell(MessagePageCell.Key, indexPath) as MessagePageCell; MessageItemViewModel model = _models[indexPath.Row]; cell.Update(model); return(cell); }
public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { MessagePageCell cell = tableView.DequeueReusableCell(MessagePageCell.Key, indexPath) as MessagePageCell; MessageItemViewModel model = _models[indexPath.Section]; cell.Layer.CornerRadius = 14; cell.Layer.BorderColor = ColorHelper.MESSAGE_BORDER_COLOR.CGColor; cell.Layer.BorderWidth = 1; cell.ClipsToBounds = true; cell.Update(model); return(cell); }
public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { MessagePageCell cell = tableView.DequeueReusableCell(MessagePageCell.Key, indexPath) as MessagePageCell; MessageItemViewModel model = _models[indexPath.Section]; cell.ContentView.Subviews[0].Layer.CornerRadius = 14; cell.ContentView.Subviews[0].Layer.BorderColor = ColorHelper.MESSAGE_BORDER_COLOR.CGColor; cell.ContentView.Subviews[0].Layer.BorderWidth = 1; cell.ContentView.Subviews[0].ClipsToBounds = true; cell.SelectionStyle = UITableViewCellSelectionStyle.None; cell.Update(model); cell.AccessibilityTraits = UIAccessibilityTrait.Link; return(cell); }