Search code examples
c#xamlwindows-phone-7.1

Text in the message box should be the next next lines


Basically i display the some text in the MessageBox with Ok and Cancel button in WindowPhone 7.1.

I need the requirement like the below.

Some text will be here....

Property:value...

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?


Solution

  • You can use Environment.Newline for line breaks

    string msg = "Text here" + Environment.NewLine + "some other text";