title: How to put a new line into a wpf TextBlock control?
body: <p>I'm fetching text from an XML file, and I'd like to insert some new lines that are interpreted by the textblock render as new lines.</p>
  
  <p>I've tried:</p>
  
  <pre><code>&lt;data&gt;Foo bar baz \n baz bar&lt;/data&gt;
  </code></pre>
  
  <p>But the data is still displayed without the new line. I set the contents of <code>&lt;data&gt;</code> via the <code>.Text</code> property via C#.</p>
  
  <p>What do I need to put in the XML in order for it to render the new line in the GUI?</p>
  
  <p>I've tried something like this manually setting the text in the XAML:</p>
  
  <pre><code>&lt;TextBlock Margin="0 15 0 0" Width="600"&gt;
  There &amp;#10;
  is a new line.
  &lt;/TextBlock&gt;
  </code></pre>
  
  <p>And while the encoded character doesn't appear in the GUI it also doesn't give me a new line.</p>