C#获取起始位置以及添加全局资源字典

获取起始位置

Path.Combine(AppDomain.CurrentDomain.BaseDirectory);

添加全局资源

string temp = "this is a string resource";
// 添加或更新资源字典
Application.Current.Resources["temp"] = temp;
posted @ 2018-05-04 11:27  致林  阅读(1018)  评论(0编辑  收藏  举报