title: Why can't I paste text copied from a WPF FlowDocumentScrollViewer or Reader?
body: <p>In a <a href="https://stackoverflow.com/questions/6339376/how-to-display-observablecollectionstring-in-a-usercontrol">previous question</a> I was trying to find out how to bind an ObservableCollection to a control so I could both see all the strings and select all the strings and copy them from the content control. The answers to that question eventually got me the look (and seemingly the behavior)I wanted by using the following XAML.  (I tried both a FlowDocumentReader and FlowDocumentScrollViewer - they behave the same.)</p>
  
  <pre><code>&lt;Grid&gt;
  &lt;FlowDocumentScrollViewer&gt;
      &lt;FlowDocument &gt;
          &lt;Paragraph&gt;
              &lt;ItemsControl ItemsSource="{Binding ErrorMessages, Mode=OneWay}" /&gt;
              &lt;Run Text="{Binding /, Mode=OneWay}" /&gt;
          &lt;/Paragraph&gt;
      &lt;/FlowDocument&gt;
  &lt;/FlowDocumentScrollViewer&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p><strong>ErrorMessages</strong> is my ViewModel property that returns an <strong>ObservableCollection&lt;string></strong>. It binds properly to the <strong>ItemsSource</strong> and the <strong>&lt;Run></strong> element binds to each string in the collection. Looks good, lasts a long time. This was so close I marked my last question as answered but I still have one problem.  </p>
  
  <p>I right click and a menu shows up with the <em>Select All</em> and <em>Copy</em> options. Using <em>Select All</em>, does indeed highlight all the text, selecting <em>Copy</em> issues no errors, but when I go to NotePad (or Word, or TextPad etc. or a RTB on the form) and try to paste the text, nothing ever shows up. As a newcomer to WPF I suspect I'm doing something wrong but I don't know what it is. There's no such thing as "lookless" text is there?</p>
  
  <p>[Edit -June 22 2011]
  For other reasons I've changed the code to use a TextBlock via an ItemTemplate inside the ItemsControl as shown below, but I still can't copy and paste.</p>
  
  <pre><code>&lt;DataTemplate x:Key="StringCollection"&gt;
     &lt;TextBlock TextWrapping="Wrap" Text="{Binding}" TextAlignment="Left"/&gt;
  &lt;/DataTemplate&gt;
  &lt;!--... now down in the ItemsControl--&gt;
  &lt;ItemsControl ItemsSource="{Binding ReceivedData, Mode=OneWay}"
        ItemTemplate="{StaticResource StringCollection}" /&gt;
  </code></pre>