Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configuration files in Silverlight

I am writing a plugin for Seesmic Desktop 2, and this being my first time using Silverlight, I have a question:

Writing Windows apps, we have the application configuration file e.g. MyApp.exe.config that is used to store config values, and for the web we have Web.config. For Silverlight, there doesn't seem to be the same thing. Ok, there's not quite the same incentive, as you have to unzip the .xap package to access it, but even so...

My issue is that I have data, e.g. JSON web service enpoint URIs that I feel uncomfortable embedding directly in code, as they would normally go in .config files. Is there any equivalent/way around this for SL?

like image 648
oloftus Avatar asked Nov 03 '10 22:11

oloftus


People also ask

How do I find configuration files?

Configuration files are normally saved in the Settings folder inside the My Documents\Source Insight folder.

What does a configuration file do?

A configuration file, often shortened to config file, defines the parameters, options, settings and preferences applied to operating systems (OSes), infrastructure devices and applications in an IT context. Software and hardware devices can be profoundly complex, supporting myriad options and parameters.

Where is configuration data stored?

Configuration data is stored in operating system environment variables.

What is a configuration folder?

The Configuration Folder is a Designer Folder behavior that allows users to create additional configurations on Data Structures. The types of configurations could be Entity Actions, Visibility Rules, and Access Patterns. The Data Structures that can use Configuration Folders are: Database Structures (must be enabled)


1 Answers

I've found a resource that seems to address the issue by creating a normal XML file, and then using custom functions to load configuration settings from (and to?) the file. Failing any better solution, I will have to do this.

like image 192
oloftus Avatar answered Sep 21 '22 23:09

oloftus