xscape
xscape

Reputation: 3376

New line in Silverlight string resource

how to add new line in my string resource file?

I already tried \r\n, \n, 
, 
 but it displays exactly what you've indicated, it does not give a new line.

Thanks for your help

Upvotes: 0

Views: 901

Answers (2)

MMKing
MMKing

Reputation: 11

When editing resource file in designer press Shift + Enter for new line.

Upvotes: 1

Jack7
Jack7

Reputation: 1341

You could, but its a bit indirect. By using 
 you could add a new line, the only trick here is that & gets converted to 
 in the background. To bring it back to 
, all you have to do is open your .resx the file in xml (right-click and open with XML (Text) editor), remove the amp; of the 

Before

  <data name="HelloWorld" xml:space="preserve">
    <value>Hello &amp;#13; World</value>
  </data>

After

  <data name="HelloWorld" xml:space="preserve">
    <value>Hello &#13; World</value>
  </data>

Upvotes: 0

Related Questions