开发者

Application configuration in Silverlight

开发者 https://www.devze.com 2023-01-09 18:43 出处:网络
开发者_运维技巧I need to have some application settings in my Silverlight project. In a standard .NET project it is accomplished by adding some Settings file. However it is not supported in SL. What s

开发者_运维技巧I need to have some application settings in my Silverlight project. In a standard .NET project it is accomplished by adding some Settings file. However it is not supported in SL. What should be done then? I think of some xml configuration file, but where should it be placed and how should it be accessed?

What is the most elegant way to set up some application configuration in SL?

Thank you in advance for replies and hints!

Cheers


Assuming you mean that you want each site to which the Xap may be deployed to be able to parameterise various aspects of the applications operation then and XML file is probably the best medium.

Use the WebClient to download it, wait for the download to complete before continuing with start code such as constructing and assigning the RootVisual.

0

精彩评论

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