private void ScrollsToRow(object sender, NSIndexPath index)
        {
            //_tableView.ScrollToRow(NSIndexPath.FromRowSection(index.Row, index.Section), UITableViewScrollPosition.Top, true);
            nfloat animationHeight = 0;

            if (!IsAnimated)
            {
                animationHeight = LocalConstants.RecoverPass_Animation;
            }

            if ((index.Row == 0 && index.Section == 2))
            {
                if (PhoneModelExtensions.IsSmallIphone())
                {
                    animationHeight += LocalConstants.RecoverPass_CodeHeightAnimation;
                    _bigAnimation    = true;
                }

                UIViewAnimationExtensions.AnimateBackgroundView(_backgroundView, animationHeight, true);
                IsAnimated = true;
            }
            else if (_bigAnimation)
            {
                UIViewAnimationExtensions.AnimateBackgroundView(_backgroundView, -LocalConstants.RecoverPass_CodeHeightAnimation, true);
                _bigAnimation = false;
            }
            else
            {
                UIViewAnimationExtensions.AnimateBackgroundView(_backgroundView, animationHeight, true);
                IsAnimated = true;
            }
        }
Beispiel #2
0
 public override void OnKeyboardNotification(UIKeyboardEventArgs keybordEvent, bool changeKeyboardState)
 {
     if (ShouldAnimateView() && keyboardViewState != changeKeyboardState)
     {
         keyboardViewState = changeKeyboardState;
         UIViewAnimationExtensions.AnimateView(this.View, LocalConstants.Login_HeightAnimation, keyboardViewState);
     }
 }
Beispiel #3
0
        private void Loading()
        {
            if (ViewModel.IsBusy)
            {
                this.View.EndEditing(true);
            }

            UIViewAnimationExtensions.CustomButtomLoadingAnimation("load_white", _submitButton, ViewModel.ChangePassword, ViewModel.IsBusy);
        }
        public override void OnKeyboardNotification(UIKeyboardEventArgs keybordEvent, bool changeKeyboardState)
        {
            if (_keyboardViewState != changeKeyboardState && ViewIsVisible)
            {
                _keyboardViewState = changeKeyboardState;

                if (!_keyboardViewState)
                {
                    UIViewAnimationExtensions.AnimateBackgroundView(_backgroundView, 0, _keyboardViewState);
                    _source.IsAnimated = false;
                }
            }
        }
Beispiel #5
0
        private void ScrollsToRow(object sender, NSIndexPath indexPath)
        {
            _tableView.ScrollToRow(NSIndexPath.FromItemSection(indexPath.Row, indexPath.Section), UITableViewScrollPosition.Middle, true);

            if ((indexPath.Row == 4 || indexPath.Row == 5) && !IsAnimated)
            {
                UIViewAnimationExtensions.AnimateBackgroundView(_backgroundView, LocalConstants.Register_ViewHeight, true);
                IsAnimated = true;
            }
            else if (indexPath.Row != 4 && indexPath.Row != 5 && IsAnimated)
            {
                IsAnimated = false;
                UIViewAnimationExtensions.AnimateBackgroundView(_backgroundView, 0, false);
            }
        }
Beispiel #6
0
 private void ScrollsToRow(object sender, bool shouldAnimate)
 {
     _tableView.ScrollToRow(NSIndexPath.FromItemSection(0, 2), UITableViewScrollPosition.Top, true);
     UIViewAnimationExtensions.AnimateView(_tableView, LocalConstants.SelectDivision_ViewHeight, shouldAnimate);
     _tableView.ScrollEnabled = !shouldAnimate;
 }
 private void Loading()
 {
     UIViewAnimationExtensions.CustomButtomLoadingAnimation("load_white", _submitButton, ViewModel.SubmitButton, ViewModel.IsBusy);
 }
Beispiel #8
0
 private void LoadingAnimation(bool isLoading)
 {
     UIViewAnimationExtensions.LoadingInView("paperplane_loading", _loadingView, isLoading);
 }
 private void LoadingAnimation(bool isLoading)
 {
     UIViewAnimationExtensions.LoadingInView("load_blue", _loadingView, isLoading);
 }
Beispiel #10
0
 private void Loading()
 {
     UIViewAnimationExtensions.CustomButtomLoadingAnimation("load_white", _signInButton, ViewModel.SignInButton, ViewModel.IsSigningIn);
 }