void ReleaseDesignerOutlets() { if (LoadingAnimation != null) { LoadingAnimation.Dispose(); LoadingAnimation = null; } if (PhotoView != null) { PhotoView.Dispose(); PhotoView = null; } }