/** * TODO * if I own the paper, set EDIT button in upper right nav * if logged in enable favorites * * Toolbar with Favorite and Share * * * */ public PaperDetailsView(Paper paper) : base("PaperDetailsView", null) { this.paper = paper; this.HidesBottomBarWhenPushed = true; }
public PaperCell(UITableViewCellStyle style, NSString ident, Paper paperNode) : 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 (paperNode); ContentView.Add (titleLabel); ContentView.Add (descriptionLabel); }
/// <summary>for iPhone</summary> public PaperElement(Paper p) : base(p.title) { paper = p; }
public void UpdateCell(Paper p) { paper = p; titleLabel.Font = bigFont; titleLabel.Text = paper.title; descriptionLabel.Text = paper.description; }
void StubViewSelectedPaper() { TestPaper = new Paper (); MockView.SetupGet (view => view.SelectedPaper).Returns (TestPaper); }