简体   繁体   English

WPF消息框本地化

[英]WPF messagebox localization

Is there a way to change the Messagebox yes and no buttons text to something else ? 有没有一种方法可以将Messagebox yesno button文本更改为其他内容? for example - and No ?! 例如-SíNo ?!

You can always make your own MessageBox. 您始终可以创建自己的MessageBox。 Just create a window with buttons and customize it the way you want to. 只需创建一个带有按钮的窗口,然后按您想要的方式自定义它即可。 Worked for me. 为我工作。

Try setting xml:lang='your languagecode' in the window where you call the messagebox from. 尝试在调用消息框的窗口中设置xml:lang =“您的语言代码”。 Maybe that will work. 也许会起作用。

Edit: Google first hit: MessageBox buttons - set language? 编辑:谷歌第一击: MessageBox按钮-设置语言?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM