在消息框中的文本应是下下一行 [英] Text in the message box should be the next next lines
本文介绍了在消息框中的文本应是下下一行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
基本上我显示在的MessageBox
与确定
和取消一些文本
在WindowPhone 7.1按钮。
Basically i display the some text in the MessageBox
with Ok
and Cancel
button in WindowPhone 7.1.
我需要像下面的要求。
某些文本将在这里....
Some text will be here....
属性:值...
其实我们可以简单的文字在MessageBox,但我怎样才能添加文本之间的换行符在MessageBox ..有没有办法做到这一点在Windows Phone的?
Actually we can simply the text in the MessageBox, but how can i add the linebreak between the text in the MessageBox.. Is there any way to do this in Windows Phone?
推荐答案
您可以使用Environment.Newline换行
You can use Environment.Newline for line breaks
string msg = "Text here" + Environment.NewLine + "some other text";
这篇关于在消息框中的文本应是下下一行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文