public void SlidePopupTo(nfloat y) { UIView.Animate(Duration, delegate { popup.UpdateY(y); if (y.Equals(HiddenY)) { transparentArea.Alpha = 0; } else { transparentArea.Alpha = 0.5f; } }, delegate { if (y.Equals(HiddenY)) { Superview.SendSubviewToBack(this); } }); }