title: Replace data everytime on button click of a paragraph in a FlowDocumentReader
body: <p>Searched many places but didn't got the desired solution.
  <strong>XAML:</strong></p>
  
  <pre><code>&lt;FlowDocumentReader  x:Name="fdr"&gt;
  &lt;FlowDocument x:Name="fd"&gt;
    &lt;Paragraph x:Name="ParaData" /&gt;
     &lt;/FlowDocument&gt;
    &lt;/FlowDocumentReader&gt;
  </code></pre>
  
  <p>In the code behind in C# Im asigning value to the paragraph on button click. See below code:</p>
  
  <pre><code>private void ShowName_Click(object sender, RoutedEventArgs e)
  {
      ParaData.Inlines.Add(new Run(txtEmpname.Text.ToString()));
  }
  </code></pre>
  
  <p><strong>PROBLEM IS</strong>:
  Everytime I click this button, the value is concatenated with the previous value in the paragraph, but I want the value to be replaced by the new value everytime on click.</p>