Example #1
0
 private void Entry_Focused(object sender, FocusEventArgs e)
 {
     if (!entryFocused)
     {
         InputSL.TranslateTo(0, -Height / 3.5, easing: Easing.CubicInOut);
         TitleSL.FadeTo(0, easing: Easing.CubicInOut);
         entryFocused = true;
     }
 }
Example #2
0
 private void TapGestureRecognizer_Tapped(object sender, EventArgs e)
 {
     if (animationStarted && entryFocused)
     {
         InputSL.TranslateTo(0, 0, easing: Easing.CubicInOut);
         TitleSL.FadeTo(1, easing: Easing.CubicInOut);
         entryFocused = false;
     }
 }
Example #3
0
 private void Entry_Unfocused(object sender, FocusEventArgs e)
 {
     if (entryFocused)
     {
         Device.StartTimer(TimeSpan.FromMilliseconds(100), () =>
         {
             if (EmailEntry.IsFocused || PasswordEntry.IsFocused || PasswordConfirmationEntry.IsFocused || justSwitched)
             {
                 return(justSwitched = false);
             }
             InputSL.TranslateTo(0, 0, easing: Easing.CubicInOut);
             TitleSL.FadeTo(1, easing: Easing.CubicInOut);
             return(entryFocused = false);
         });
     }
 }