title: Capture coloured console output into WPF application
body: <p>Similar to <a href="https://stackoverflow.com/questions/186822/capturing-the-console-output-in-net-c">this question</a>, except the console program being wrapped up in the WPF application produces coloured output, so it would be nice if I could capture the colour as well as the text.</p>
  
  <p>This is my first WPF program and I'm not sure how to go about finding/modifying the right control, currently I'm just using a TextBox which works but only captures plain text.</p>
  
  <p>Update: I tried using RichTextBox:</p>
  
  <pre><code>richTextBox.Document.Blocks.Clear();
  richTextBox.Document.Blocks.Add(new Paragraph(new Run(process.StandardOutput.ReadToEnd())));
  </code></pre>
  
  <p>Alas it only showed plain text.</p>