问题关于Silverlight以及如何加载应用程序(Question About Silverlight and how the application is loaded)

编程入门 行业动态 更新时间:2024-10-07 21:45:57
问题关于Silverlight以及如何加载应用程序(Question About Silverlight and how the application is loaded)

在Silverlight 3.0中,我们现在可以使用导航框架创建具有多个页面的应用程序,我的问题是:

当我们运行应用程序时,整个应用程序是立即加载还是当我们导航到特定页面时它会被加载?

对于那些想要创建一个非常快速加载的应用程序的人来说,这可能很重要,如果一切都在开始时加载,整个用户体验可能变得像一场噩梦,因为他们必须等待很长时间。

谢谢。

In Silverlight 3.0 we can now create applications with multiple pages using the navigation framework, My question is :

When we run the application does the whole application gets loaded up at once or it gets loaded up when we navigate to a particular page ?

This is probably important for those who want to create an application that gets loaded up very quickly, if everything is loaded up at the begining, the whole user experience might become like a nightmare as they have to wait a long time.

Thank you.

最满意答案

嗯...

如果加载了整个XAP,请检查存储在浏览器缓存中的方式。

另一方面,您可以像markti评论的那样执行部分加载,如何定义您的视图? 使用接口契约,所以你可以推迟加载视图以按需显示(主XAP加载应用程序,加上接口程序集,你将视图分成几个DLL,可能主页加载,其余只是在后台加载)。

您也可以使用独立存储来缓存Dll(然后您的应用程序将从本地计算机读取Dll)。

http://timheuer.com/blog/archive/2008/09/24/silverlight-isolated-storage-caching.aspx

Mmm...

If the entire XAP is loaded check how is stored in browser cache.

On the other hand, you can perform partial loads as markti commented, how to define your views? use interfaces contract, so you can deferr the load the views to show on demand (main XAP loads application, plus interface assemblies, the you divide the views into several DLL's, maybe main page is loaded and the rest just loaded in background).

You can as well use isolated storage to cache that Dll's (then your application will read that Dll's from the local computer).

http://timheuer.com/blog/archive/2008/09/24/silverlight-isolated-storage-caching.aspx

更多推荐

本文发布于:2023-08-07 17:19:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1465270.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   加载   Silverlight   loaded   application

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!