title: How do I wrap content in a WPF ListView?
body: <p>I have a very simple WPF ListView that I'm using to list blocks of text.  I'd like it to scroll vertically, but the text should wrap so that there is no horizontal scroll.  All the examples I've seen are overly convoluted DataGridView nesting solutions.  This seems like such a simple use-case, however.  Here is my current code:</p>
  
  <pre><code>&lt;ListView  
          Height="Auto"
          Width="Auto"
          Margin="0"
          Name="mLogListView" 
          FontWeight="Bold"
          FontSize="16"
          SelectionMode="Single"
          ScrollViewer.HorizontalScrollBarVisibility="Disabled"
          HorizontalContentAlignment="Stretch"/&gt;
  </code></pre>
  
  <p>I've tried setting the ScrollViewer.HorizontalScrollBarVisibility and HorizontalContentAlignment properties but the text simply runs off the end of the control and doesn't wrap.</p>
  
  <p>Each item is added to the <code>ListView.Items</code> collection and is a <code>ListViewItem</code> object.  The text is set to the item's <code>Content</code> property.</p>
  
  <p>Here is the code responsible for adding text times to the list:</p>
  
  <pre><code>ListViewItem item = new ListViewItem();            
  item.Content = "Item text is set here, but refuses to wrap in list view!";
  mLogListView.Items.Add(item);
  </code></pre>
  
  <p>Thank you.</p>