开发者

Silverlight Business Application - File Size

开发者 https://www.devze.com 2023-03-28 19:47 出处:网络
Looking at the silverlight business application, it seems to add a number of libraries specific to Input Forms and the like.

Looking at the silverlight business application, it seems to add a number of libraries specific to Input Forms and the like.

  1. Am I right in saying that creating Complex classes results in these forms being generated automatic开发者_运维问答ally?
  2. Looking at the file size of the basic Silverlight business application XAP file, it's around 412Kb. Is there a way to reduce that size?

Regards, Jacques


You can re-zip the XAP file, but that is only a 20% saving generally at best.

Using the PRISM pattern and a modular approach, we managed to get our initial page load down to around 150Kb (the entire app is over 4Mb). The rest of the modules continue to stream down in the background so we get something on-screen very fast.

If you intend to build a large application, PRISM and/or MEF is the way to go. It has an additional learning curve but it results in very modular apps (great for team development/maintenance).


Here are some tips and tricks to try to make your XAP smaller. Like removing references you don't really use and re-zipping the XAP. Hope it helps!

http://forums.silverlight.net/t/21548.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号