示例#1
0
 private void OnBackgrndImageLoaded(object sender, FFImageLoading.Forms.CachedImageEvents.FinishEventArgs e)
 {
     if (Shell.Current.CurrentState.Location.OriginalString != "//Login")
     {
         return;
     }
     imageLoaded = true;
     ChevronSL.FadeTo(1, 500, Easing.CubicOut);
     BackgrndImage.FadeTo(1, 500, Easing.CubicOut);
     LogoImage.TranslateTo(0, 80, 750, Easing.CubicInOut);
 }
示例#2
0
 private void OnShellNavigated(object sender, ShellNavigatedEventArgs e)
 {
     // If we have just arrived after sign out and for some reason this page hasn't been destroyed!
     // We must reset the original visual states of the beginning transition items;
     if (e.Current?.Location.OriginalString == "//Login" && e.Previous?.Location.OriginalString == "//Settings")
     {
         animationStarted       = false;
         MaterialFrame.Opacity  = 0;
         LogoImage.TranslationY = 0;
         TitleSL.Opacity        = 0;
         TitleSL.TranslationY   = 200;
         ChevronSL.Opacity      = 0;
         foreach (Frame f in ButtonSL.Children)
         {
             f.Opacity = 0;
         }
         if (!imageLoaded)
         {
             BackgrndImage.ReloadImage();
         }
     }
 }
示例#3
0
 private void OnShellNavigated(object sender, ShellNavigatedEventArgs e)
 {
     // If we have just arrived after sign out and for some reason this page hasn't been destroyed!
     // We must reset the original visual states of the beginning transition items;
     if (e.Current?.Location.OriginalString == "//Login")
     {
         animationStarted       = false;
         MaterialFrame.Opacity  = 0;
         LogoImage.TranslationY = 0;
         TitleSL.Opacity        = 0;
         TitleSL.TranslationY   = 200;
         ChevronSL.Opacity      = 0;
         EmailEntry.IsEnabled   = PasswordEntry.IsEnabled = PasswordConfirmationEntry.IsEnabled = false;
         foreach (VisualElement v in InputSL.Children)
         {
             v.Opacity = 0;
         }
         if (!imageLoaded)
         {
             BackgrndImage.ReloadImage();
         }
     }
 }