wpf 中英文版编写

 

 

1 var uriC = new Uri("/YTManage.Language;component/Chinese.xaml", UriKind.Relative);   // 得到资源的相对路径。
//YTManage.Language项目名称 ,
//Chinese.xaml 资源名称 ,其它的都是一样
2 //var uriE = new Uri("/YTManage.Language;component/English.xaml", UriKind.Relative); 3 //var resE = (ResourceDictionary)Application.LoadComponent(uriE); 4 var resC = (ResourceDictionary)Application.LoadComponent(uriC); 5 //Application.Current.Resources.MergedDictionaries.Add(resE); 6 Application.Current.Resources.MergedDictionaries.Add(resC);

 

posted @ 2014-11-02 14:04  玖彩技术团队  阅读(511)  评论(0编辑  收藏  举报
以上只是个人想法和实践经验,如果有文字错误和语法错误,请加以指点! QQ:247039968 emil:wujc@younger.com 无论是美女的歌声,还是鬣狗的狂吠,无论是鳄鱼的眼泪,还是恶狼的嚎叫,都不会使我动摇