Silverlight的:如何处理的标准组件 [英] Silverlight: how to handle standard assemblies

查看:151
本文介绍了Silverlight的:如何处理的标准组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个通常的Silverlight的任务:使XAP文件更小的尺寸。有很多的热待办事项手册解释如何使你的应用程序的模块化。但我没有发现任何人解释如何使模块化标准库。

A usual Silverlight task: to make the size of xap-file smaller. There are a lot of hot-to-do manuals that explain how to make your application modular. But I didn't find anyone that explains how to make "modular" standard libraries.

我的XAP文件(1.7MB,当整体尺寸为1.8MB)的最大部分被占用的标准组件:其中System.Windows.Controls.dll - 370KB,System.Windows.Controls.Data.dll - 464KB,等等...

The biggest part of my xap-file (1.7Mb, when overall size is 1.8Mb) is occupied by standard assemblies: among them System.Windows.Controls.dll - 370Kb, System.Windows.Controls.Data.dll - 464Kb, etc...

能否请你告诉(或给予参考手册)如何将这些组件出XAP文件?我可以用棱镜/团结和动态加载它们,但在这种情况下,我需要从我的Silverlight库删除对这些组件......他们成为不可编译...

Could you please tell (or give a reference to manual) how to move these assemblies out of xap file? I could use prism/unity and load them dynamically, but in this case I need to remove references to these assemblies from my Silverlight libraries... and they become uncompilable...

详细信息: 可以想像,我有ModuleAView工程,即包含了我的应用程序页面。该模块是单独的程序...但它仍然是pretty的大(它包含了所有提到的库)。如果我会从该项目转移出库,我的XAML的文件变得不可编译的。

Details: lets imagine, I have "ModuleAView" project, that contains pages for my application. This module is in the separate assembly... but it is still pretty big (it contains all mentioned libraries). If I will move out libraries from the project, my XAML-files became uncompilable.

请指教。 谢谢你。

推荐答案

一个建议是使用Silverlight的程序集文件缓存选项。文档和walkthru可以在这里找到 。您的应用程序的总体规模将不会改变,但它很可能是最终用户体验,对于老用户,将进一步改善浏览器的缓存各个组件。

One suggestion is to use Silverlight's assembly file caching option. Documentation and an walkthru may be found here. The overall size of your application won't change, but it's likely that the end user experience, for returning users, will improve as the browser caches the individual assemblies.

这篇关于Silverlight的:如何处理的标准组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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