private void HideUsingAnimation(bool animated) { // Fade out if (animated) { UIView.BeginAnimations(null); UIView.SetAnimationDuration(0.4f); Alpha = 0.0f; UIView.CommitAnimations(); } else { Alpha = 0.0f; } Done(); } #endregion