1

I've got an app at present which has failed certification due to a page transition error.

The problem is very sensitive to timing, but can be reproduced by:

  1. Start the app - wait for the home page to show
  2. Navigate to a child page
  3. As soon as the navigation starts, then hit the start button
  4. Then hit the back button - the child page is there
  5. Then hit the back button - the home page is not there - it's a blank screen

If I then hit the screen lock button, then unlock the phone, then the page appears normally.

There's no data reason that I can see why the home page is not shown, so it feels like this is something to do with the page transitions.

There are setup using:

        var navInTransition = new NavigationInTransition
        {
            Backward = new TurnstileTransition { Mode = TurnstileTransitionMode.BackwardIn },
            Forward = new TurnstileTransition { Mode = TurnstileTransitionMode.ForwardIn }
        };

        var navOutTransition = new NavigationOutTransition
        {
            Backward = new TurnstileTransition { Mode = TurnstileTransitionMode.BackwardOut },
            Forward = new TurnstileTransition { Mode = TurnstileTransitionMode.ForwardOut }
        };

        TransitionService.SetNavigationInTransition(this, navInTransition);
        TransitionService.SetNavigationOutTransition(this, navOutTransition);

If I remove this transition code, then my app never "gets stuck".

Has anyone seen anything like this before? Does anyone have any ideas how I can work out in code if the page transitions are stuck - and if they are how I might then be able to restart them?

4

1 に答える 1

1

これが 256MB デバイスのみにある場合は、メモリ関連の問題である可能性があります。この状況では、トランジションの使用を無効にしてみてください。http://www.developer.nokia.com/Community/Wiki/Best_practice_tips_for_delivering_apps_to_Windows_Phone_with_256_MB
で推奨されているとおり

または、アニメーションの片側だけを削除してみてください。過去にトランジションの問題がありました (申し訳ありませんが、正確な詳細を思い出せません) NavigationOutTransition

于 2012-06-26T12:05:12.083 に答える