title: Displaying HTML  code preview in WPF
body: <p>I want to build a sample application where you can preview HTML code.</p>
  
  <p>For example:</p>
  
  <pre><code>&lt;TabControl......&gt;
      &lt;tabItem Header="HTML".....&gt;
          &lt;!-
              Here I type my HTML code ...
              &lt;html&gt;
                  &lt;body&gt;
                      &lt;p&gt;********Some Text*******&lt;/p&gt;
                  &lt;/body&gt;
              &lt;/html&gt;
              which would be saved in the database as it is.
          -&gt;
      &lt;/TabItem&gt;
      &lt;tabItem Header="Preview".....&gt;
          &lt;!-
               On clicking this Tab the Preview of the
               above HTML code (read from the database)
               should be displayed.
          -&gt;
      &lt;/TabItem&gt;
  &lt;/TabControl&gt;
  </code></pre>
  
  <p>How do I display the preview?</p>