public async Task SetElement(Photo photo) { Check.IsNull(photo); // Retrieve image data and use it to create UIImage var imageData = await PhotosClient.GetImageData(photo); var image = UIImage.LoadFromData(NSData.FromArray(imageData)); // Set image and title ImagePhotoPreview.SetImage(image); LabelPhotoTitle.SetText(photo.Title); }
void ReleaseDesignerOutlets() { if (ImagePhotoPreview != null) { ImagePhotoPreview.Dispose(); ImagePhotoPreview = null; } if (LabelPhotoTitle != null) { LabelPhotoTitle.Dispose(); LabelPhotoTitle = null; } }