Windows Phone 7 Sign in screen redirect

后端 未结 4 1876
时光说笑
时光说笑 2020-12-19 03:07

Apologise if there is answer for this somewhere else, I can\'t find any.

I imagine this is a common situation. The first time the user runs the application I want th

4条回答
  •  被撕碎了的回忆
    2020-12-19 03:18

    Unfortunately the WP7 navigation framework doesn't handle the "do something on first run" situation very nicely at all.

    I suspect the problem you're seeing is that you don't have a NavigationService yet... but even if you did, you'd have a problem: the user could still hit the "back" button. You can't even work around that, because the user pressing back should exit the app... but there's no way I'm aware of for doing that without already being at the first page naturally when the user hits the back button.

    The only workaround I've found for this is to have the "sign-in" view in the same page as the normal first page, and display one or the other conditionally. Yes, it sucks... but it's the only approach I've found which works. If you find another, I'll be happy to hear about it :)

提交回复
热议问题