Localizing of WPF application

本文讨论了WPF应用程序中主线程的文化设置及其对用户界面的影响,并强调了新线程不会继承主线程的文化设置,需显式指定。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

The main WPF thread will always be assigned a default setting for CurrentCulture and CurrentUICulture. You can also explicitly set these values based on user preferences (to be discussed). An important point to note, however, is that if a WPF application spins up new threads, those threads will not inherit the main UI thread’s culture settings, in fact they will not be set at all! So, be sure to explicitly assign new threads with the appropriate values.

转载于:https://www.cnblogs.com/umlchina/archive/2011/11/21/2257151.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值