public void UpdateCell(Tag tag) { this.tag = tag; titleLabel.Font = bigFont; titleLabel.Text = tag.name + " (" + tag.count.ToString() + ")"; // descriptionLabel.Text = tagNode.paper.description; }
public TagCell(UITableViewCellStyle style, NSString ident, Tag tag) : base(style, ident) { SelectionStyle = UITableViewCellSelectionStyle.Blue; titleLabel = new UILabel () { TextAlignment = UITextAlignment.Left, BackgroundColor = UIColor.FromWhiteAlpha (0f, 0f) }; // descriptionLabel = new UILabel () { // TextAlignment = UITextAlignment.Left, // Font = smallFont, // TextColor = UIColor.DarkGray, // BackgroundColor = UIColor.FromWhiteAlpha (0f, 0f) // }; UpdateCell (tag); ContentView.Add (titleLabel); // ContentView.Add (descriptionLabel); }
/// <summary>for iPhone</summary> public TagElement(Tag tag) : base(tag.name) { this.tag = tag; }
public GetPapersByTagInvokerArgs(Tag tag) { this.tag = tag; }
void StubViewSelectedTag() { TestTag = new Tag (); MockView.SetupGet (view => view.SelectedTag).Returns (TestTag); }