在消息框中更改按钮languege [英] Changing buttons languege in a message box

查看:69
本文介绍了在消息框中更改按钮languege的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Silverlight项目中你好
我使用下面的代码来制作一个消息框,它可以工作,但它是否可以改变它的语言?我的意思是我想要自定义项而不是Ok和Cancel按钮。

Hi in a Silverlight project I am using the following code for shoeing a message box, It works ,but is it possible changing its Language? I mean that I want to have custom items instead of Ok and Cancel button.

if (MessageBox.Show("Message", "header", MessageBoxButton.OKCancel) == MessageBoxResult.Cancel)
              { return; }







and

MessageBox.Show("message", "", MessageBoxButton.OK);





我不会创建另一个自定义消息框

谢谢。



and I do not create another custom message box
thanks.

推荐答案

嗨Angela,如果没有自定义消息框,就无法做到这一点。只能更改标题和消息。



这个例子 [ ^ ]非常有趣。



祝你好运。
Hi Angela, there is no way to do that without a custom message box. Only title and message can be changed.

This example[^] is very interesting.

Best regards.


这篇关于在消息框中更改按钮languege的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆