Ejemplo n.º 1
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();
         }
     }
 }
Ejemplo n.º 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")
     {
         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();
         }
     }
 }