Path.Combine(AppDomain.CurrentDomain.BaseDirectory);
string temp = "this is a string resource"; // 添加或更新资源字典 Application.Current.Resources["temp"] = temp;