开发者

Silverlight object persistence

开发者 https://www.devze.com 2023-03-23 00:59 出处:网络
Is it possible to have the same Silverlight object host persist in memory as the user traverses our site?I\'m interested in having my Silverlight objects开发者_开发问答 stick around from page to page.

Is it possible to have the same Silverlight object host persist in memory as the user traverses our site? I'm interested in having my Silverlight objects开发者_开发问答 stick around from page to page.

Using IE7.


In short: No.

Typically to achieve this you make the decision that the Silverlight application is your site (or at least a complete segment of your site) and use Silverlight Navigation framework to allow the user to navigate from "page to page" within the application. Where "page" refers to various Xaml pages within a single Silverlight application.


As a workaround, you could store the object in JSON or XML in the IsolatedStorage for the Site (not the application) and use the built in serialization methods to work with the object. Then just check for its existence for each app that is loaded.

0

精彩评论

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