加载应用程序时从扩展启动屏幕导航 [英] Navigate from extended splash screen when app is loaded

查看:32
本文介绍了加载应用程序时从扩展启动屏幕导航的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 webview 从网站提取数据,然后使用 HtmlAgillityPack 解析它以在应用程序上显示信息.因为 xaml 控件的更新需要时间,所以我希望使用扩展的初始屏幕来延迟主页面的显示,直到它完全加载并填充来自网络的信息.

I am pulling data from a website with webview and later parse it with HtmlAgillityPack to display info on the app. Because the update of the xaml controls takes time, I wish to use the extended splash screen to delay the display of the main page until it is completely loaded and populated with information from web.

我现在的问题是,一旦这个页面充满了解析的数据,我该如何从扩展启动页面切换到主页面?

My question now is how do I switch from the extended splash to the main page once this one is filled with the parsed data?

推荐答案

  1. 如果您要从挂起状态恢复并使用 SuspensionManager,请调用 SuspensionManager.RestoreAsync(),然后将 Windows.Current.Content 设置为根框架
  2. 如果您是新开始,请创建一个根框架,导航到起始页,然后将 Windows.Current.Content 设置为根框架

这是我用来向我的应用程序添加扩展启动画面的示例,延时摄影:

Here is a sample that I used to add an extended splash screen to my app, Time-Lapse:

Windows 8 启动画面示例

这篇关于加载应用程序时从扩展启动屏幕导航的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆