Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7176711
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:33:53+00:00 2026-05-28T16:33:53+00:00

In Metro apps that use HTML it is recommended to use fragments to navigate

  • 0

In Metro apps that use HTML it is recommended to use fragments to navigate to different page (explained here).

How can you animate navigation between fragments without writing lots of code?

1) The navigate method is shown in many examples, but doesn’t seem to have animation control:

WinJS.Navigation.navigate('/html/myNextPage.html');

2) The is a method WinJS.UI.Animation.enterPage, but do you have to give up navigate’s history management to use this? Also the documentation is pretty sketchy still.

Shouldn’t this be a one liner because it’s such a common scenario?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T16:33:53+00:00Added an answer on May 28, 2026 at 4:33 pm

    WinJS has support for animations and does not interfere with Fragment navigation. Animations are visual effects that do not change history and are simple to use.

    Typically you would do both at the same time:

    1) Navigate to a new fragment using

    WinJS.Navigation.navigate('/html/myPage.html');
    

    2) Within myPage.js, the enterPage animation can be used:

    WinJS.UI.ui.Pages.define("/html/myPage.html", {
        ready: function (element, options) {
            var offset = { top: "500px", left: "500px" };
            var el = document.getElementById("rootId")  // id of any element on myPage.html
            WinJS.UI.Animation.enterPage(el, offset);
        }
    }
    

    This will animate everything on the page, from position 500,500 to the final resting positions (assuming rootId is a containing all your other elements).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I read that Metro Apps do not run in Desktop mode (on Intel) and
I was seeing Metro style apps, and I realized that the XAML style in
I recognized, that MEF is limited for metro style apps. There is no container
Suppose I create two metro apps, one with an HTML view which has <input
Can non-Metro Windows apps (ex: Explorer) be built with the new WinRT, or must
SOLVED! See my self-answer below. I'm building two Metro-style apps using Javascript and HTML,
Do you know a twitter library for Windows 8 metro apps?
I'd like to secure my (Java metro) webservice with a login. Here's how I'm
I decided to have a go at building Windows Metro style apps with the
Does anyone know how to get Expression Blend to work with XAML-based Metro Apps?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.