silverlight 设置线程的区域性来设置语言

来源:互联网 发布:unity3d怎样设置透明 编辑:程序博客网 时间:2024/04/30 10:37

//设置线程的区域性来设置语言,把这行代码写在页面的构造函数中就可。

//设置成中文如DatePicker和Calendar就会显示成中文
//System.Threading.Thread.CurrentThread.CurrentCulture = new CultureInfo("zh-Hans");
//设置成英文如DatePicker和Calendar就会显示成英文
System.Threading.Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
原创粉丝点击