Silverlight 4 - 将用户设置保留到隔离存储
完整的.NET平台有一个很棒的功能,可以在设置文件中存储用户选项,方便地支持保存和加载。有人为 Silverlight 创建过类似的东西吗?我希望将设置存储在客户端。
The full .NET platform has a great feature for storing user options in Settings files, which conveniently support saving and loading. Has anyone created an analog to this for Silverlight? I'd like the settings to be stored client side.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Silverlight 也有一个独立存储 API - 您可以通过字典以及独立存储中的完整文件系统 API 保存/检索离散元素。
Silverlight has an IsolatedStorage API as well - you can save/retrieve discrete elements via a dictionary as well as a full file system API in Isolated Storage.
您应该使用IsolatedStorageSettings。 (http://msdn.microsoft.com/en-us/library/system.io.isolatedstorage.isolatedstoragesettings(v=vs.95).aspx)
You should use the IsolatedStorageSettings. (http://msdn.microsoft.com/en-us/library/system.io.isolatedstorage.isolatedstoragesettings(v=vs.95).aspx)