当存储常用的应用程序设置 [英] Where to store common application settings

查看:130
本文介绍了当存储常用的应用程序设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将我的应用程序设置了XAML,并成为一个配置文件。例如,工具提示和内容串按钮/复选框和标签。这是一个ResourceDictionary中的工作,或者我应该使用的app.config或Settings.settings文件?

I want to move my application settings out of XAML and into a config file. For example, ToolTips and Content strings for Buttons/CheckBoxes and Labels. Is this the job of a ResourceDictionary, or should I use the App.Config or Settings.settings file?

工具提示和内容字符串是不是真的每个用户,他们更广泛的应用,并可能改变,如果用户界面是国际化。

The ToolTips and Content strings are not really per user, they are more Application wide and may change if the UI is internationalized.

编辑: 我听说使用资源词典或使用的app.config ,有什么区别呢?

I hear use a Resource Dictionary or use a App.Config, what is the difference?

谢谢!

推荐答案

工具提示和字符串是很少的应用程序设置,而是属于您的应用程序本身都散发着它。我觉得一个ResourceDictionary的是这样的事情最好的地方。

Tool tips and strings are rarely application "settings" but rather belong to your application program itself and are distributed with it. I think a ResourceDictionary is the best place for such a thing.

这篇关于当存储常用的应用程序设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆