当app启动时需要显示注册page.once用户注册它不应该去注册页面需要登录页面.怎么做到这一点?
Wil*_*mpt 14
您可以从代码导航到Windows Phone应用程序的起始页面.
从WMAppManifest中删除"DefaultTask"条目
从WMAppManifest中的"DefaultTask"中删除NavigationPage属性,并在应用程序的Launching事件中使用类似下面示例的内容导航到启动时选择的页面.
private void Application_Launching(object sender, LaunchingEventArgs e)
{
if (registered)
{
((App)Application.Current).RootFrame.Navigate(new Uri("/<your start page>.xaml", UriKind.Relative));
}
else
{
((App)Application.Current).RootFrame.Navigate(new Uri("/<your registration page>.xaml", UriKind.Relative));
}
}
Run Code Online (Sandbox Code Playgroud)
您只需要决定如何确定某人已经注册.
归档时间: |
|
查看次数: |
2555 次 |
最近记录: |