开发者

How/where to store settings in windows mobile app?

开发者 https://www.devze.com 2022-12-12 11:41 出处:网络
How / where do I store settings in a windows mobile 6 application (t开发者_StackOverflow中文版argeting compact framework 3.5)?

How / where do I store settings in a windows mobile 6 application (t开发者_StackOverflow中文版argeting compact framework 3.5)?

Is there some mechanism like the properties.settings for desktop?


Unfortunately, the System.Configuration is missing from .NET Compact Framework.

You can use the Smart Device Framework or you can just create a class that stores your settings and the save it and load it using a XmlSerializer.


Or just store the stuff in the registry, which is what I ended up doing.


It would be best to use the config settings class to do the job for you. Alternatively, for more flexibility, use an INI class handler (there are a good few out there, look for Windows mobile platform portability). Nini would be your best bet! Hope this helps, Best regards, Tom.

0

精彩评论

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