设置IsolatedStorageSettings.ApplicationSettings的默认值

时间:2009-12-11 22:33:52

标签: silverlight isolatedstorage

Silverlight具有IsolatedStorageSettings.ApplicationSettings。

我基本上在ASP.NET中寻找与AppSettings相当的东西,我可以在其中设置默认值。 如何在ApplicationSettings的XAML文件中设置默认值?

documentation doesnt explain how to

1 个答案:

答案 0 :(得分:2)

您可以do like these guys did并构建一个包含默认值的包装类。

这是一个有人为此目的使用初始化参数的情况:

http://msmvps.com/blogs/luisabreu/archive/2007/06/20/getting-your-initparams-from-managed-code.aspx