MonoMobile.Views.ProgressHud.HideUsingAnimation C# (CSharp) Method

HideUsingAnimation() private method

private HideUsingAnimation ( bool animated ) : void
animated bool
return void
		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