/// <summary> /// Slides a page in from the right /// </summary> /// <param name="page">The page to animate</param> /// <param name="seconds">The time the animation will take</param> /// <returns></returns> public static async Task SlideAndFadeInFromTop(this Page page, float seconds) { // Create the storyboard var sb = new Storyboard(); // Add slide from right animation sb.AddLoginSlideFromTop(seconds, page.WindowWidth); // Add fade in animation sb.AddLoginFadeIn(seconds); // Start animating sb.Begin(page); // Make page visible page.Visibility = Visibility.Visible; // Wait for it to finish await Task.Delay((int)(seconds * 1000)); }