public void Show(PhotoBrowserModel photoBrowser) { ImageViewer.Builder builder = new ImageViewer.Builder(Platform.Context, photoBrowser.Photos.Select(x => x.Path).ToArray()); ImageOverlayView overlay = new ImageOverlayView(Platform.Context, photoBrowser); builder.SetOverlayView(overlay); builder.SetImageChangeListener(overlay); builder.SetStartPosition(photoBrowser.StartIndex); _imageViewer = builder.Show(); }
void ReleaseDesignerOutlets() { if (btnTopNotify != null) { btnTopNotify.Dispose(); btnTopNotify = null; } if (ChallengeImage != null) { ChallengeImage.Dispose(); ChallengeImage = null; } if (ChallengeText != null) { ChallengeText.Dispose(); ChallengeText = null; } if (cnsTableViewHeight != null) { cnsTableViewHeight.Dispose(); cnsTableViewHeight = null; } if (cnsWebViewHeight != null) { cnsWebViewHeight.Dispose(); cnsWebViewHeight = null; } if (CollectionViewHeightConstraint != null) { CollectionViewHeightConstraint.Dispose(); CollectionViewHeightConstraint = null; } if (Content != null) { Content.Dispose(); Content = null; } if (ImageHeightConstraint != null) { ImageHeightConstraint.Dispose(); ImageHeightConstraint = null; } if (ImageOverlayView != null) { ImageOverlayView.Dispose(); ImageOverlayView = null; } if (imgTopLock != null) { imgTopLock.Dispose(); imgTopLock = null; } if (lblTopTime != null) { lblTopTime.Dispose(); lblTopTime = null; } if (lblTopUnlocksIn != null) { lblTopUnlocksIn.Dispose(); lblTopUnlocksIn = null; } if (MCCollectionView != null) { MCCollectionView.Dispose(); MCCollectionView = null; } if (PointsImage != null) { PointsImage.Dispose(); PointsImage = null; } if (PointsText != null) { PointsText.Dispose(); PointsText = null; } if (ScrollView != null) { ScrollView.Dispose(); ScrollView = null; } if (SelectAllThatApply != null) { SelectAllThatApply.Dispose(); SelectAllThatApply = null; } if (SubmitButton != null) { SubmitButton.Dispose(); SubmitButton = null; } if (TableView != null) { TableView.Dispose(); TableView = null; } if (TimeText != null) { TimeText.Dispose(); TimeText = null; } if (WebView != null) { WebView.Dispose(); WebView = null; } }