title: Is there a simple way to wrap text in a WPF ListBox?
body: <p>I have searched around for this, found some solutions related to Winforms, and some even just saying it is really difficult in WPF to accomplish, but those posts are quite old.</p>
  
  <p>If I have a standard <code>ListBox</code>, which is declared as:</p>
  
  <pre><code>&lt;ListBox 
      x:Name="listBox" 
      HorizontalAlignment="Left" 
      Height="240" 
      Margin="401,68,0,0" 
      VerticalAlignment="Top" 
      Width="345" 
      SelectionChanged="listBox_SelectionChanged"
      ScrollViewer.HorizontalScrollBarVisibility="Disabled"
      Grid.ColumnSpan="2"/&gt;`
  </code></pre>
  
  <p>and programmatically:</p>
  
  <pre><code>System.ComponentModel.BindingList&lt;string&gt; listItems = new System.ComponentModel.BindingList&lt;string&gt;();
  listBox.ItemsSource = listItems;
  </code></pre>
  
  <p>Is there a way for these strings to be wrapped within the <code>ListBox</code>?</p>