/// <summary> /// Gets the cell. /// </summary> /// <returns>The cell.</returns> /// <param name="item">Item.</param> /// <param name="reusableCell">Reusable cell.</param> /// <param name="tv">Tv.</param> public override UIKit.UITableViewCell GetCell(Cell item, UIKit.UITableViewCell reusableCell, UIKit.UITableView tv) { var cell = base.GetCell(item, reusableCell, tv); cell.SetDisclosure(item.StyleId); return(cell); }
public override UIKit.UITableViewCell GetCell(Cell item, UIKit.UITableViewCell reusableCell, UIKit.UITableView tv) { var view = base.GetCell(item, reusableCell, tv); view.Accessory = UIKit.UITableViewCellAccessory.DisclosureIndicator; return(view); }
public override UIKit.UITableViewCell GetCell(Cell item, UIKit.UITableViewCell reusableCell, UIKit.UITableView tv) { var cell = base.GetCell(item, reusableCell, tv); switch (item.StyleId) { case "checkmark": cell.Accessory = UIKit.UITableViewCellAccessory.Checkmark; break; case "detail-button": cell.Accessory = UIKit.UITableViewCellAccessory.DetailButton; break; case "detail-disclosure-button": cell.Accessory = UIKit.UITableViewCellAccessory.DetailDisclosureButton; break; case "disclosure": cell.Accessory = UIKit.UITableViewCellAccessory.DisclosureIndicator; break; default: cell.Accessory = UIKit.UITableViewCellAccessory.None; break; } return(cell); }
public override UIKit.UITableViewCell GetCell(Cell item, UIKit.UITableViewCell reusableCell, UIKit.UITableView tv) { var tableViewCell = base.GetCell(item, reusableCell, tv); tableViewCell.AccessibilityIdentifier = item.AutomationId; return(tableViewCell); }
public override UIKit.UITableViewCell GetCell(Cell item, UIKit.UITableViewCell reusableCell, UIKit.UITableView tv) { var cell = base.GetCell(item, reusableCell, tv); cell.SelectionStyle = UIKit.UITableViewCellSelectionStyle.None; return(cell); }
public override UIKit.UITableViewCell GetCell(Cell item, UIKit.UITableViewCell reusableCell, UIKit.UITableView tv) { var cell = base.GetCell(item, reusableCell, tv); switch (item.StyleId) { case "none": cell.Accessory = UIKit.UITableViewCellAccessory.None; break; case "checkmark": cell.Accessory = UIKit.UITableViewCellAccessory.Checkmark; break; case "detail-button": cell.Accessory = UIKit.UITableViewCellAccessory.DetailButton; break; case "detail-disclosure-button": cell.Accessory = UIKit.UITableViewCellAccessory.DetailDisclosureButton; break; case "disclosure": default: cell.Accessory = UIKit.UITableViewCellAccessory.DisclosureIndicator; break; } if (cell != null) { cell.BackgroundColor = Color.FromHex("#96BCE3").ToUIColor(); } return(cell); }
public override UIKit.UITableViewCell GetCell (UIKit.UITableView tv) { cell = base.GetCell (tv); cell.UserInteractionEnabled = enabled; cell.TextLabel.Enabled = enabled; return cell; }
public override UIKit.UITableViewCell GetCell(UIKit.UITableView tv) { cell = base.GetCell(tv); cell.UserInteractionEnabled = enabled; cell.TextLabel.Enabled = enabled; return(cell); }
/// <summary> /// Gets the cell. /// </summary> /// <returns>The cell.</returns> /// <param name="item">Item.</param> /// <param name="reusableCell">Reusable cell.</param> /// <param name="tv">Tv.</param> public override UIKit.UITableViewCell GetCell(Cell item, UIKit.UITableViewCell reusableCell, UIKit.UITableView tv) { var cell = base.GetCell(item, reusableCell, tv); cell.SeparatorInset = UIKit.UIEdgeInsets.Zero; return(cell); }
public override UIKit.UITableViewCell GetCell(Cell item, UIKit.UITableViewCell reusableCell, UIKit.UITableView tv) { var cell = base.GetCell(item, reusableCell, tv); cell.Accessory = CellAccessoryHelper.GetCellAccessory(item.StyleId); return(cell); }
void ReleaseDesignerOutlets() { if (CompletedIcon != null) { CompletedIcon.Dispose(); CompletedIcon = null; } if (CompletedTableViewCell != null) { CompletedTableViewCell.Dispose(); CompletedTableViewCell = null; } if (CreateIcon != null) { CreateIcon.Dispose(); CreateIcon = null; } if (CreateLabel != null) { CreateLabel.Dispose(); CreateLabel = null; } if (CreateMaintenanceTableViewCell != null) { CreateMaintenanceTableViewCell.Dispose(); CreateMaintenanceTableViewCell = null; } if (IncompleteIcon != null) { IncompleteIcon.Dispose(); IncompleteIcon = null; } if (IncompleteTableViewCell != null) { IncompleteTableViewCell.Dispose(); IncompleteTableViewCell = null; } if (RequestedIcon != null) { RequestedIcon.Dispose(); RequestedIcon = null; } if (RequestedTableViewCell != null) { RequestedTableViewCell.Dispose(); RequestedTableViewCell = null; } }
public override UIKit.UITableViewCell GetCell(Xamarin.Forms.Cell item, UIKit.UITableViewCell reusableCell, UIKit.UITableView tv) { var cell = base.GetCell(item, reusableCell, tv); if (cell != null) { cell.SelectionStyle = UIKit.UITableViewCellSelectionStyle.None; } return(cell); }
void ReleaseDesignerOutlets() { if (AuthenticationTypeCell != null) { AuthenticationTypeCell.Dispose(); AuthenticationTypeCell = null; } if (ProtocolTypeCell != null) { ProtocolTypeCell.Dispose(); ProtocolTypeCell = null; } }
void ReleaseDesignerOutlets() { if (ApplicationRepo != null) { ApplicationRepo.Dispose(); ApplicationRepo = null; } if (ModelRepo != null) { ModelRepo.Dispose(); ModelRepo = null; } }
void ReleaseDesignerOutlets() { if (ImageRow != null) { ImageRow.Dispose(); ImageRow = null; } if (Imagen != null) { Imagen.Dispose(); Imagen = null; } }
void ReleaseDesignerOutlets() { if (okayActionSheetCell != null) { okayActionSheetCell.Dispose(); okayActionSheetCell = null; } if (otherActionSheetCell != null) { otherActionSheetCell.Dispose(); otherActionSheetCell = null; } }
public override UIKit.UITableViewCell GetCell(Cell item, UIKit.UITableViewCell reusableCell, UIKit.UITableView tv) { var view = base.GetCell(item, reusableCell, tv); if (!string.IsNullOrEmpty(item.AutomationId)) { var cellContentView = view.Subviews[0]; var textField = cellContentView.Subviews[0]; textField.AccessibilityIdentifier = item.AutomationId; } return(view); }
public override UIKit.UITableViewCell GetCell(Cell item, UIKit.UITableViewCell reusableCell, UIKit.UITableView tv) { tv.AllowsSelection = false; var cell = base.GetCell(item, reusableCell, tv); UIKit.UIColor backColor = Xamarin.Forms.Color.Transparent.ToUIColor(); var cellEx = item as ViewCellEx; if (cellEx != null) { backColor = cellEx.CellBackColor.ToUIColor(); } cell.BackgroundColor = backColor; if (_bgView == null) { _bgView = new UIKit.UIView { BackgroundColor = backColor }; } cell.BackgroundView = _bgView; cell.SelectionStyle = UIKit.UITableViewCellSelectionStyle.None; switch (item.StyleId) { case "checkmark": cell.Accessory = UIKit.UITableViewCellAccessory.Checkmark; break; case "detail-button": cell.Accessory = UIKit.UITableViewCellAccessory.DetailButton; break; case "detail-disclosure-button": cell.Accessory = UIKit.UITableViewCellAccessory.DetailDisclosureButton; break; case "disclosure": default: cell.Accessory = UIKit.UITableViewCellAccessory.None; break; } return(cell); }
void ReleaseDesignerOutlets () { if (InformationCell != null) { InformationCell.Dispose (); InformationCell = null; } if (OpenHoursCell != null) { OpenHoursCell.Dispose (); OpenHoursCell = null; } if (MapView != null) { MapView.Dispose (); MapView = null; } }
public override UIKit.UITableViewCell GetCell(Xamarin.Forms.Cell item, UIKit.UITableViewCell reusableCell, UIKit.UITableView tv) { _nativeContactCell = reusableCell as iOSContactCell; if (_nativeContactCell == null) { var stuff = iOSContactCell.Nib.Instantiate(null, null); _nativeContactCell = stuff.First() as iOSContactCell; } else { _nativeContactCell.FormsContactCell.PropertyChanged -= FormsContactCell_PropertyChanged; } _nativeContactCell.FormsContactCell = item as FormsContactCell; _nativeContactCell.FormsContactCell.PropertyChanged += FormsContactCell_PropertyChanged; _nativeContactCell.UpdateCell((item as FormsContactCell).ContactName); return(_nativeContactCell); }
public override UIKit.UITableViewCell GetCell(Xamarin.Forms.Cell item, UIKit.UITableViewCell reusableCell, UIKit.UITableView tv) { var tvc = tv.DequeueReusableCell("BrandCell"); if (tvc == null) { tv.RegisterNibForCellReuse(BrandCell.Nib, "BrandCell"); tvc = tv.DequeueReusableCell("BrandCell"); } //tvc.Cell = item; //WireUpForceUpdateSizeRequested(item, tvc, tv); //tvc.TextLabel.Text = item.ToString(); //UpdateBackground(tvc, item); return(tvc); }
public override UIKit.UITableViewCell GetCell(UIKit.UITableView tv) { var cell = tv.DequeueReusableCell (CellKey); if (SignInButton == null) { SignInButton = new Google.SignIn.SignInButton { Frame = new CoreGraphics.CGRect (20, 0, tv.Frame.Width - 40, 44), Enabled = this.Enabled, }; } if (cell == null) { cell = new UIKit.UITableViewCell (UIKit.UITableViewCellStyle.Default, CellKey); cell.Add (SignInButton); } return cell; }
void ReleaseDesignerOutlets() { if (InformationCell != null) { InformationCell.Dispose(); InformationCell = null; } if (OpenHoursCell != null) { OpenHoursCell.Dispose(); OpenHoursCell = null; } if (MapView != null) { MapView.Dispose(); MapView = null; } }
public override UIKit.UITableViewCell GetCell(Cell item, UIKit.UITableViewCell reusableCell, UIKit.UITableView tv) { var cell = base.GetCell(item, reusableCell, tv); var discItem = item as DisclosureCell; if (discItem.StyleId == "SearchControls") { cell.Accessory = UIKit.UITableViewCellAccessory.DisclosureIndicator; } else if (discItem.StyleId == "Details" && discItem.IsSelected) { cell.Accessory = UIKit.UITableViewCellAccessory.Checkmark; } else { cell.AccessoryView = new UIKit.UIView(new CoreGraphics.CGRect(0, 0, 20, cell.Bounds.Height)); } return(cell); }
public override UIKit.UITableViewCell GetCell(UIKit.UITableView tv) { var cell = tv.DequeueReusableCell(CellKey); if (SignInButton == null) { SignInButton = new Google.SignIn.SignInButton { Frame = new CoreGraphics.CGRect(20, 0, tv.Frame.Width - 40, 44), Enabled = this.Enabled, }; } if (cell == null) { cell = new UIKit.UITableViewCell(UIKit.UITableViewCellStyle.Default, CellKey); cell.Add(SignInButton); } return(cell); }
void ReleaseDesignerOutlets() { if (calendarsCell != null) { calendarsCell.Dispose(); calendarsCell = null; } if (createReminderCell != null) { createReminderCell.Dispose(); createReminderCell = null; } if (modifyEventCell != null) { modifyEventCell.Dispose(); modifyEventCell = null; } if (newEventCell != null) { newEventCell.Dispose(); newEventCell = null; } if (remindersCell != null) { remindersCell.Dispose(); remindersCell = null; } if (saveEventsCell != null) { saveEventsCell.Dispose(); saveEventsCell = null; } }
void ReleaseDesignerOutlets() { if (EmailProfileTableCell != null) { EmailProfileTableCell.Dispose(); EmailProfileTableCell = null; } if (FirstNameProfileLabel != null) { FirstNameProfileLabel.Dispose(); FirstNameProfileLabel = null; } if (FirstNameTableCell != null) { FirstNameTableCell.Dispose(); FirstNameTableCell = null; } if (GenderProfileTableCell != null) { GenderProfileTableCell.Dispose(); GenderProfileTableCell = null; } if (LastNameLabel != null) { LastNameLabel.Dispose(); LastNameLabel = null; } if (LastNameTableCell != null) { LastNameTableCell.Dispose(); LastNameTableCell = null; } }
public override UIKit.UITableViewCell GetCell(Cell item, UIKit.UITableViewCell reusableCell, UIKit.UITableView tv) { var messageCell = (MessageCell)item; _cell = reusableCell as NativeIOSCell; if (_cell == null) { _cell = new NativeIOSCell(messageCell, item.GetType().FullName); } else { _cell.NativeCell.PropertyChanged -= OnNativeCellPropertyChanged; _cell.RemoveFromSuperview(); } messageCell.PropertyChanged += OnNativeCellPropertyChanged; _cell.UpdateCell(messageCell); _cell.ContentView.Transform = CoreGraphics.CGAffineTransform.MakeScale(1f, -1f); return(_cell); }
public override UIKit.UITableViewCell GetCell(Cell item, UIKit.UITableViewCell reusableCell, UIKit.UITableView tv) { var cell = base.GetCell(item, reusableCell, tv); if (item is CheckmarkViewCell) { //if ((item as CheckmarkViewCell).StyleId.Equals("checkmark")) //{ // cell.Accessory = UIKit.UITableViewCellAccessory.Checkmark; //} } else { cell.Accessory = UIKit.UITableViewCellAccessory.DisclosureIndicator; } //switch (item.StyleId) //{ // case "none": // cell.Accessory = UIKit.UITableViewCellAccessory.None; // break; // case "checkmark": // cell.Accessory = UIKit.UITableViewCellAccessory.Checkmark; // break; // case "detail-button": // cell.Accessory = UIKit.UITableViewCellAccessory.DetailButton; // break; // case "detail-disclosure-button": // cell.Accessory = UIKit.UITableViewCellAccessory.DetailDisclosureButton; // break; // case "disclosure": // default: // cell.Accessory = UIKit.UITableViewCellAccessory.DisclosureIndicator; // break; //} return(cell); }
public override UIKit.UITableViewCell GetCell(Cell item, UIKit.UITableViewCell reusableCell, UIKit.UITableView tv) { var nativeCell = reusableCell as NativeCustomCell; if (nativeCell == null) { //リサイクルでなければセルを生成する nativeCell = new NativeCustomCell(item); } //リサイクル前のFormsCellのPropertyChangedを解除する nativeCell.Cell.PropertyChanged -= nativeCell.CellPropertyChanged; //NativeCellに持たせてあるFormsCellへの参照を更新する(リサイクル前の値のままにしない) nativeCell.Cell = item; //リサイクル後のFormsCellのProe item.PropertyChanged += nativeCell.CellPropertyChanged; //セル内容の更新 nativeCell.UpdateCell(); return(nativeCell); }
protected override void UpdateTableViewCell(UIKit.UITableViewCell cell, BloodGlucoseEntry state) { cell.TextLabel.Text = state.BloodGlucoseValue.ToString(); }
protected override void UpdateTableViewCell(UIKit.UITableViewCell cell, SharedHealthState.StepCountEntry state) { cell.TextLabel.Text = state.Count.ToString(); }
public virtual void WillDisplay(UIKit.UITableView tableView, UIKit.UITableViewCell cell, Foundation.NSIndexPath indexPath) { throw new NotImplementedException(); }