赞
踩
List<ResourceDictionary> _listResource = new List<ResourceDictionary>()
{
new ResourceDictionary(){ Source=new Uri("pack://application:,,,/语言国际化1;component/Language/Cn.xaml",UriKind.RelativeOrAbsolute) },
new ResourceDictionary(){ Source=new Uri("pack://application:,,,/语言国际化1;component/Language/En.xaml",UriKind.RelativeOrAbsolute) },
};
if (isCn)
{
this.Resources = _listResource[1];
isCn = false;
}
else
{
this.Resources = _listResource[0];
isCn = true;
}
string tt = this.Resources["首页"].ToString();
txtShow.Text = tt.ToString();
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。