如何检测应用程序何时完全加载。 [英] How to detect when app is completely loaded.

查看:59
本文介绍了如何检测应用程序何时完全加载。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何检测xaml何时完全加载?我知道每个组件都有一个"已加载"的事件,但这对我没有帮助,除非我知道加载的最终组件。 在其他平台上,加载完成时会触发的事件是
在Windows上不是这种情况?

How can I detect when a xaml is completely finished loading? I know each component has a 'loaded' event but that doesn't help me unless I know the final component that loads.  On other platforms there are events that fire when loading is complete is this not the case on Windows?

情况是我加载了一堆设置并将它们放入。UI 然后使用这些值进行一堆计算,并将结果放入更多的ui组件中。 我可以加载每个设置,因为每个单独的组件
加载,但计算的值不能这样做。 

The situation is that I load a pile of settings and place them into the ui.  Then those values are used to do a pile of calculations and the results are placed into more ui components.  I could load each setting separate as each individual component loads but the calculated values can't do this. 

任何帮助都会很棒。

推荐答案

只有你,开发者,决定哪一个是最终的加载的组件。例如,如果您有一个Twitter客户端显示其主页实时动态添加组件,则可能永远不会有最终组件,因为客户端可能总是
处于加载状态。加载顺序是应用程序的业务逻辑,而不是操作系统参与的内容。
Only you, the developer, decides which one is the final component that loads. For example if you have a twitter client showing its homepage that dynamically add components in real time, there may never be a final component as the client will probably always be in the loading status. Loading sequence is your application's business logic, not something the OS gets involved with.


这篇关于如何检测应用程序何时完全加载。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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