private void AnimateFrameChanges() { switch (_scrollOrientation) { case ARNotificationScrollOrientation.FromRightToLeft: this.ChangeFrame(x: -DeviceInfo.ScreenWidth); break; case ARNotificationScrollOrientation.FromLeftToRight: this.ChangeFrame(x: DeviceInfo.ScreenWidth); break; case ARNotificationScrollOrientation.FromBottomToTop: this.ChangeFrame(y: -HEIGHT); break; case ARNotificationScrollOrientation.FromTopToBottom: var maxHeight = (nfloat)Math.Min(_realTextSize.Height + TEXT_VIEW_OFFSET, DeviceInfo.ScreenHeight); this.ChangeFrame(h: maxHeight); _textView.ChangeFrame(h: Frame.Height - TEXT_VIEW_OFFSET); break; } }