private UITableViewCellAccessory StringToAccessoryType(string str) { UITableViewCellAccessory accessory = UITableViewCellAccessory.None; str = str ?? ""; switch (str.ToLower()) { case "none": accessory = UITableViewCellAccessory.None; break; case "checkmark": accessory = UITableViewCellAccessory.Checkmark; break; case "detail-button": accessory = UITableViewCellAccessory.DetailButton; break; case "detail-disclosure-button": accessory = UITableViewCellAccessory.DetailDisclosureButton; break; case "disclosure": accessory = UITableViewCellAccessory.DisclosureIndicator; break; default: break; } return(accessory); }
public MvxBindableTableViewCell(string bindingText, UITableViewCellStyle cellStyle, NSString cellIdentifier, UITableViewCellAccessory tableViewCellAccessory = UITableViewCellAccessory.None) : base(cellStyle, cellIdentifier) { Accessory = tableViewCellAccessory; InitialiseImageHelper(); _bindings = Binder.Bind(null, this, bindingText).ToList(); }
public MvxTableViewCell(string bindingText, UITableViewCellStyle cellStyle, NSString cellIdentifier, UITableViewCellAccessory tableViewCellAccessory = UITableViewCellAccessory.None) : base(cellStyle, cellIdentifier) { Accessory = tableViewCellAccessory; this.CreateBindingContext(bindingText); }
public GeneralTableViewCell(IEnumerable <MvxBindingDescription> bindingDescriptions, UITableViewCellStyle cellStyle, NSString cellIdentifier, UITableViewCellAccessory tableViewCellAccessory = UITableViewCellAccessory.None) : base(bindingDescriptions, cellStyle, cellIdentifier, tableViewCellAccessory) { InitializeImageHelper(); }
public ImageLoaderStringElement(string caption, NSAction tapped, NSUrl imageUrl, UIImage placeholder) : base(caption, tapped) #endif { Placeholder = placeholder; ImageUrl = imageUrl; this.Accessory = UITableViewCellAccessory.None; }
public MvxBindableTableViewCell(IEnumerable<MvxBindingDescription> bindingDescriptions, UITableViewCellStyle cellStyle, NSString cellIdentifier, UITableViewCellAccessory tableViewCellAccessory = UITableViewCellAccessory.None) : base(bindingDescriptions, cellStyle, cellIdentifier, tableViewCellAccessory) { InitialiseImageHelper(); }
public ImageLoaderStringElement (string caption, NSAction tapped, NSUrl imageUrl, UIImage placeholder) : base (caption, tapped) #endif { Placeholder = placeholder; ImageUrl = imageUrl; this.Accessory = UITableViewCellAccessory.None; }
/// <summary> /// You specify the table style in the constructor when using a UITableViewController /// </summary> public TableScreen(UITableViewStyle tableStyle, UITableViewCellStyle cellStyle , UITableViewCellAccessory cellAccessory) : base(tableStyle) { this._cellStyle = cellStyle; this._cellAccessory = cellAccessory; }
public AspectItem(string text, string detailtext, UITableViewCellStyle style, UITableViewCellAccessory accessory) { Text = text; DetailText = detailtext; Style = style; Accessory = accessory; }
/// <summary> /// You specify the table style in the constructor when using a UITableViewController /// </summary> public TableScreen (UITableViewStyle tableStyle, UITableViewCellStyle cellStyle , UITableViewCellAccessory cellAccessory) : base (tableStyle) { this.cellStyle = cellStyle; this.cellAccessory = cellAccessory; }
public MvxStandardTableViewCell(IEnumerable <MvxBindingDescription> bindingDescriptions, UITableViewCellStyle cellStyle, NSString cellIdentifier, UITableViewCellAccessory tableViewCellAccessory = UITableViewCellAccessory.None) : base(bindingDescriptions, cellStyle, cellIdentifier, tableViewCellAccessory) { InitialiseImageLoader(); }
public MvxStandardTableViewCell(IEnumerable<MvxBindingDescription> bindingDescriptions, UITableViewCellStyle cellStyle, NSString cellIdentifier, UITableViewCellAccessory tableViewCellAccessory = UITableViewCellAccessory.None) : base(bindingDescriptions, cellStyle, cellIdentifier, tableViewCellAccessory) { this.InitializeImageLoader(); }
public CustomOwnerDrawnElement (UITableViewCellStyle style, string cellIdentifier, UITableViewCellSelectionStyle selectionStyle, UITableViewCellAccessory accesory) : this(style, cellIdentifier) { this.SelectionStyle = selectionStyle; this.Accessory = accesory; }
public MvxBindableTableViewCell(IEnumerable <MvxBindingDescription> bindingDescriptions, UITableViewCellStyle cellStyle, NSString cellIdentifier, UITableViewCellAccessory tableViewCellAccessory = UITableViewCellAccessory.None) : base(cellStyle, cellIdentifier) { Accessory = tableViewCellAccessory; InitialiseImageHelper(); _bindings = Binder.Bind(null, this, bindingDescriptions).ToList(); }
protected MvxBaseBindableTableViewSource(UITableView tableView, UITableViewCellStyle style, NSString cellIdentifier, IEnumerable <MvxBindingDescription> descriptions, UITableViewCellAccessory tableViewCellAccessory = UITableViewCellAccessory.None) { _tableView = tableView; _cellStyle = style; _cellIdentifier = cellIdentifier; _bindingDescriptions = descriptions; _tableViewCellAccessory = tableViewCellAccessory; }
public MvxBaseBindableTableViewCell(string bindingText, UITableViewCellStyle cellStyle, NSString cellIdentifier, UITableViewCellAccessory tableViewCellAccessory = UITableViewCellAccessory.None) : base(cellStyle, cellIdentifier) { Accessory = tableViewCellAccessory; CreateFirstBindAction(bindingText); }
protected MvxBaseBindableTableViewSource(UITableView tableView, UITableViewCellStyle style, NSString cellIdentifier, IEnumerable<MvxBindingDescription> descriptions, UITableViewCellAccessory tableViewCellAccessory = UITableViewCellAccessory.None) { _tableView = tableView; _cellStyle = style; _cellIdentifier = cellIdentifier; _bindingDescriptions = descriptions; _tableViewCellAccessory = tableViewCellAccessory; }
public MvxTableViewCell(string bindingText, UITableViewCellStyle cellStyle, NSString cellIdentifier, UITableViewCellAccessory tableViewCellAccessory = UITableViewCellAccessory.None) : base(cellStyle, cellIdentifier) { this.Accessory = tableViewCellAccessory; this.CreateBindingContext(bindingText); }
public MvxActionBasedTableViewSource(UITableView tableView, UITableViewCellStyle style, NSString cellIdentifier, IEnumerable<MvxBindingDescription> descriptions, UITableViewCellAccessory tableViewCellAccessory) : base(tableView, style, cellIdentifier, descriptions, tableViewCellAccessory) { Initialize(); }
public MvxStandardTableViewSource( UITableView tableView, UITableViewCellStyle style, NSString cellIdentifier, string bindingText, UITableViewCellAccessory tableViewCellAccessory = UITableViewCellAccessory.None) : this(tableView, style, cellIdentifier, ParseBindingText(bindingText), tableViewCellAccessory) { }
public MvxActionBasedTableViewSource(UITableView tableView, UITableViewCellStyle style, NSString cellIdentifier, string bindingText, UITableViewCellAccessory tableViewCellAccessory) : base(tableView, style, cellIdentifier, bindingText, tableViewCellAccessory) { Initialize(); }
public MvxBaseBindableTableViewCell(IEnumerable<MvxBindingDescription> bindingDescriptions, UITableViewCellStyle cellStyle, NSString cellIdentifier, UITableViewCellAccessory tableViewCellAccessory = UITableViewCellAccessory.None) : base(cellStyle, cellIdentifier) { Accessory = tableViewCellAccessory; CreateFirstBindAction(bindingDescriptions); }
public MvxTableViewCell(IEnumerable <MvxBindingDescription> bindingDescriptions, UITableViewCellStyle cellStyle, NSString cellIdentifier, UITableViewCellAccessory tableViewCellAccessory = UITableViewCellAccessory.None) : base(cellStyle, cellIdentifier) { Accessory = tableViewCellAccessory; this.CreateBindingContext(bindingDescriptions); }
public MvxTableViewCell(IEnumerable<MvxBindingDescription> bindingDescriptions, UITableViewCellStyle cellStyle, NSString cellIdentifier, UITableViewCellAccessory tableViewCellAccessory = UITableViewCellAccessory.None) : base(cellStyle, cellIdentifier) { Accessory = tableViewCellAccessory; this.CreateBindingContext(bindingDescriptions); }
public MvxActionBasedTableViewSource(UITableView tableView, UITableViewCellStyle style, NSString cellIdentifier, IEnumerable <MvxBindingDescription> descriptions, UITableViewCellAccessory tableViewCellAccessory) : base(tableView, style, cellIdentifier, descriptions, tableViewCellAccessory) { Initialize(); }
public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { UITableViewCell cell; UIImage img = null; UITableViewCellStyle cellStyle = UITableViewCellStyle.Default; UITableViewCellAccessory cellAccessory = UITableViewCellAccessory.None; int row = indexPath.Row; string text = ""; string detail = "detail"; switch (row) { case 0: cellStyle = UITableViewCellStyle.Default; cellAccessory = UITableViewCellAccessory.Checkmark; text = "Default"; img = UIImage.FromFile("Image.png"); break; case 1: cellStyle = UITableViewCellStyle.Subtitle; cellAccessory = UITableViewCellAccessory.DetailDisclosureButton; text = "Subtitle"; img = UIImage.FromFile("Image.png"); break; case 2: cellStyle = UITableViewCellStyle.Value1; cellAccessory = UITableViewCellAccessory.DisclosureIndicator; text = "Value1"; break; case 3: cellStyle = UITableViewCellStyle.Value2; cellAccessory = UITableViewCellAccessory.None; text = "Value2"; break; } cell = new UITableViewCell(cellStyle, "cell"); cell.TextLabel.Text = text; if (cell.DetailTextLabel != null) { cell.DetailTextLabel.Text = detail; } if (img != null) { cell.ImageView.Image = img; } cell.Accessory = cellAccessory; return(cell); }
public MultilinedElement(string caption) : base(UITableViewCellStyle.Default, "multilinedelement") { Caption = caption; BackgroundColor = UIColor.White; CaptionFont = UIFont.SystemFontOfSize(15f * Element.FontSizeRatio); ValueFont = UIFont.SystemFontOfSize(13f * Element.FontSizeRatio); CaptionColor = ValueColor = UIColor.FromRGB(41, 41, 41); Accessory = UITableViewCellAccessory.None; }
private void InitElement(object data, string btnImage, NSAction buttonTapped) { Data = data; image = UIImage.FromFile(btnImage); buttonImage = btnImage; ButtonTapped += buttonTapped; button = UIHelper.CreateImageButton(buttonImage, 0f, 0f, 25f, 25f); button.TouchDown += HandleTouchDown; this.Accessory = UITableViewCellAccessory.DisclosureIndicator; }
public MultilinedElement(string caption) : base(UITableViewCellStyle.Default, "multilinedelement") { Caption = caption; BackgroundColor = UIColor.White; CaptionFont = UIFont.PreferredHeadline; ValueFont = UIFont.PreferredBody; CaptionColor = ValueColor = UIColor.FromRGB(41, 41, 41); Accessory = UITableViewCellAccessory.None; }
private void setDisclosureMarks(bool Enabled, bool IncludePostField) { int MaxField = (IncludePostField) ? 4 : 3; UITableViewCellAccessory accessory = (Enabled) ? UITableViewCellAccessory.DisclosureIndicator : UITableViewCellAccessory.None; for (int i = 0; i <= MaxField; i++) { TableView.VisibleCells[i].Accessory = accessory; } }
public MvxTableViewCell(IEnumerable <MvxBindingDescription> bindingDescriptions, UITableViewCellStyle cellStyle, NSString cellIdentifier, UITableViewCellAccessory tableViewCellAccessory = UITableViewCellAccessory.None) : base(cellStyle, cellIdentifier) { // note that we allow the virtual Accessory property to be set here - but do not seal // it. Previous `sealed` code caused odd, unexplained behaviour in MonoTouch // - see https://github.com/MvvmCross/MvvmCross/issues/524 Accessory = tableViewCellAccessory; this.CreateBindingContext(bindingDescriptions); }
public MvxTableViewCell(IEnumerable<MvxBindingDescription> bindingDescriptions, UITableViewCellStyle cellStyle, NSString cellIdentifier, UITableViewCellAccessory tableViewCellAccessory = UITableViewCellAccessory.None) : base(cellStyle, cellIdentifier) { // note that we allow the virtual Accessory property to be set here - but do not seal // it. Previous `sealed` code caused odd, unexplained behaviour in MonoTouch // - see https://github.com/MvvmCross/MvvmCross/issues/524 this.Accessory = tableViewCellAccessory; this.CreateBindingContext(bindingDescriptions); }
public MvxStandardTableViewSource( UITableView tableView, UITableViewCellStyle style, NSString cellIdentifier, IEnumerable<MvxBindingDescription> descriptions, UITableViewCellAccessory tableViewCellAccessory = UITableViewCellAccessory.None) : base(tableView) { _cellStyle = style; _cellIdentifier = cellIdentifier; _bindingDescriptions = descriptions; _tableViewCellAccessory = tableViewCellAccessory; }
public MvxStandardTableViewSource( UITableView tableView, UITableViewCellStyle style, NSString cellIdentifier, IEnumerable <MvxBindingDescription> descriptions, UITableViewCellAccessory tableViewCellAccessory = UITableViewCellAccessory.None) : base(tableView) { this._cellStyle = style; this._cellIdentifier = cellIdentifier; this._bindingDescriptions = descriptions; this._tableViewCellAccessory = tableViewCellAccessory; }
//======================================================================================================================================== // PUBLIC CLASS PROPERTIES //======================================================================================================================================== //======================================================================================================================================== // Constructor //======================================================================================================================================== /// <summary> /// Initializes a new instance of the <see cref="TwoSplitTableViewExtended.CustomTopTableViewCell"/> class. Inits our labels /// </summary> public CustomTopTableViewCell(CoreGraphics.CGRect frame, string id) : base(UITableViewCellStyle.Default, string.IsNullOrEmpty(id) ? cellIdentifier : id) { prefixLableFont = UIFont.SystemFontOfSize(UIFont.SystemFontSize); cellPrefixLabel = new UILabel(new CoreGraphics.CGRect(DefaultiOSDimensions.cellPadding, 0, getStringWidth(cellPrefix), frame.Height)); cellDataLabel = new UILabel(new CoreGraphics.CGRect(cellPrefixLabel.Frame.Width + (DefaultiOSDimensions.cellPadding * 2), 0, frame.Width - getStringWidth(cellPrefix), frame.Height)); cellAccessoryDetail = UITableViewCellAccessory.DetailButton; cellTextColor = UIColor.Red; inactiveAccessoryColor = UIColor.Blue; activeAccessoryColor = UIColor.Green; cellPrefixTextColor = UIColor.LightGray; ContentView.AddSubviews(new UIView[] { cellPrefixLabel, cellDataLabel }); }
public BadgeElement (UIImage badgeImage, string cellText, NSAction tapped) : base (cellText) { LineBreakMode = UILineBreakMode.TailTruncation; ContentMode = UIViewContentMode.Left; Lines = 1; Accessory = UITableViewCellAccessory.None; if (badgeImage == null) throw new ArgumentNullException ("badgeImage"); _image = badgeImage; if (tapped != null) Tapped += tapped; }
public BadgeElement(UIImage badgeImage, string cellText, NSAction tapped) : base(cellText) { LineBreakMode = UILineBreakMode.TailTruncation; ContentMode = UIViewContentMode.Left; Lines = 1; Accessory = UITableViewCellAccessory.None; if (badgeImage == null) { throw new ArgumentNullException("badgeImage"); } _image = badgeImage; if (tapped != null) { Tapped += tapped; } }
public LegendItem(string text,string detailtext,UITableViewCellStyle style,UITableViewCellAccessory accessory) { Text = text; DetailText = detailtext; Style = style; Accessory = accessory; }
public MvxBindableTableViewSource(UITableView tableView, UITableViewCellStyle style, NSString cellIdentifier, string bindingText, UITableViewCellAccessory tableViewCellAccessory = UITableViewCellAccessory.None) : base(tableView, style, cellIdentifier, bindingText, tableViewCellAccessory) { }
public ImageStringElement(string caption, string value, UIImage image) : base(caption, value) { this.image = image; this.Accessory = UITableViewCellAccessory.None; }
public ImageStringElement(string caption, NSAction tapped, UIImage image) : base(caption, tapped) { this.image = image; this.Accessory = UITableViewCellAccessory.None; }
public TableViewSourceWithTitle(UITableView tableView, string title, UITableViewCellStyle style, NSString cellIdentifier, string bindingText, UITableViewCellAccessory tableViewCellAccessory = UITableViewCellAccessory.None) : base(tableView, style, cellIdentifier, bindingText, tableViewCellAccessory) { _title = title; }
public ImageStringElement (string caption, NSAction tapped, UIImage image) : base (caption, tapped) { this.image = image; this.Accessory = UITableViewCellAccessory.None; }
public ImageStringElement (string caption, string value, UIImage image) : base (caption, value) { this.image = image; this.Accessory = UITableViewCellAccessory.None; }
public MvxDeleteBindableTableViewSource(UITableView tableView, UITableViewCellStyle cellStyle, NSString cellIdentifier, string bindingText, UITableViewCellAccessory accessory) : base(tableView, cellStyle, cellIdentifier, bindingText, accessory) { }
public ImageLoaderStringElement (string caption, string value, NSUrl imageUrl, UIImage placeholder) : base (caption, value) { Placeholder = placeholder; ImageUrl = imageUrl; this.Accessory = UITableViewCellAccessory.None; }
public GeneralTableViewCell(string bindingText, UITableViewCellStyle cellStyle, NSString cellIdentifier, UITableViewCellAccessory tableViewCellAccessory = UITableViewCellAccessory.None) : base(bindingText, cellStyle, cellIdentifier, tableViewCellAccessory) { this.InitializeImageHelper(); }
public MvxBindableTableViewSource(UITableView tableView, UITableViewCellStyle style, NSString cellIdentifier, IEnumerable <MvxBindingDescription> descriptions, UITableViewCellAccessory tableViewCellAccessory = UITableViewCellAccessory.None) : base(tableView, style, cellIdentifier, descriptions, tableViewCellAccessory) { }
public MvxStandardTableViewCell(string bindingText, UITableViewCellStyle cellStyle, NSString cellIdentifier, UITableViewCellAccessory tableViewCellAccessory = UITableViewCellAccessory.None) : base(bindingText, cellStyle, cellIdentifier, tableViewCellAccessory) { this.InitializeImageLoader(); }
public MvxBindableTableViewCell(string bindingText, UITableViewCellStyle cellStyle, NSString cellIdentifier, UITableViewCellAccessory tableViewCellAccessory = UITableViewCellAccessory.None) : base(bindingText, cellStyle, cellIdentifier, tableViewCellAccessory) { InitialiseImageHelper(); }
public TableViewSourceWithTitle(UITableView tableView, UITableViewCellStyle style, NSString cellIdentifier, IEnumerable<MvxBindingDescription> descriptions, UITableViewCellAccessory tableViewCellAccessory = UITableViewCellAccessory.None) : base(tableView, style, cellIdentifier, descriptions, tableViewCellAccessory) { }
public DataSource(UITableView tableView, UITableViewCellStyle tableCellStyle, NSString cellId, string bindingText, UITableViewCellAccessory cellAccessory = UITableViewCellAccessory.None) : base(tableView, tableCellStyle, cellId, bindingText, cellAccessory) { }
public ImageStringElement(string caption) : base(caption) { this.Accessory = UITableViewCellAccessory.None; }