コード例 #1
0
 public DetailedImageElement(string imageUri, string title, string detail)
     : base(title)
 {
     detailImageData = new DetailImageData()
     {
         ImageUri = new Uri(imageUri),
         Title = title,
         SubTitle = detail
     };
 }
コード例 #2
0
        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;
        }
コード例 #3
0
 public DetailedImageView(DetailImageData data)
 {
     titleLabel = new UILabel() { Lines = 2, Font = titleFont };
     subTitleLabel = new UILabel() { Lines = 2, Font = subTitleFont };
     this.data = data;
 }
コード例 #4
0
 public void UpdateCell(DetailImageData data)
 {
     videoCellView.Update(data);
     SetNeedsDisplay();
 }
コード例 #5
0
 public DetailedImageCell(DetailImageData data)
 {
     videoCellView = new DetailedImageView(data);
     UpdateCell(data);
     ContentView.Add(videoCellView);
 }
コード例 #6
0
            public void Update(DetailImageData newData)
            {
                data = newData;

                titleLabel.Text = data.Title;
                subTitleLabel.Text = data.SubTitle;

                SetNeedsDisplay();
            }