Silverlight 读取Web.config
web.config
<appSettings>
<add key="ApplicationName" value="A Better Silverlight Configuration Demonstration"/>
</appSettings>
<add key="ApplicationName" value="A Better Silverlight Configuration Demonstration"/>
</appSettings>
在*.xaml.cs:
App application = (App)Application.Current; string ApplicationName = application.DeploymentConfigurations["ApplicationName"];