title: Setting text in a RichTextBox
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/957441/richtextbox-wpf-does-not-have-string-property-text">RichTextBox (WPF) does not have string property &ldquo;Text&rdquo;</a>  </p>
  </blockquote>
  
  
  
  <p>This is ridiculous, my RichTextBox has no document or paragraph property.
  How am I supposed to add text to it via C#?</p>
  
  <pre><code>&lt;ScrollViewer Margin="16,56,16,16"&gt;
                  &lt;RichTextBox x:Name="PREVIEWTEMP"
                               HorizontalContentAlignment="Stretch"
                               VerticalContentAlignment="Top"
                               Padding="0,6,0,0"
                               Height="528"
                               Width="400"
                               IsReadOnly="True"&gt;
                      &lt;Paragraph&gt;
                          &lt;Run Text="RichTextBox" /&gt;
                      &lt;/Paragraph&gt;
                  &lt;/RichTextBox&gt;
              &lt;/ScrollViewer&gt;
  </code></pre>
  
  <p>Does anyone know how to do this?</p>