public DetailedImageElement(string imageUri, string title, string detail) : base(title) { detailImageData = new DetailImageData() { ImageUri = new Uri(imageUri), Title = title, SubTitle = detail }; }
public DetailedImageElement(ApiNode apiNode, Func<ApiNode, UIViewController> createOnSelected) : base(apiNode.Title) { detailImageData = new DetailImageData() { ImageUri = new Uri(apiNode["thumbnailSml"]), Title = apiNode.Title, SubTitle = apiNode.Description }; this.apiNode = apiNode; this.createOnSelected = createOnSelected; }
public DetailedImageView(DetailImageData data) { titleLabel = new UILabel() { Lines = 2, Font = titleFont }; subTitleLabel = new UILabel() { Lines = 2, Font = subTitleFont }; this.data = data; }
public void UpdateCell(DetailImageData data) { videoCellView.Update(data); SetNeedsDisplay(); }
public DetailedImageCell(DetailImageData data) { videoCellView = new DetailedImageView(data); UpdateCell(data); ContentView.Add(videoCellView); }
public void Update(DetailImageData newData) { data = newData; titleLabel.Text = data.Title; subTitleLabel.Text = data.SubTitle; SetNeedsDisplay(); }