title: Comma-separated listbox
body: <p>I have a Listbox with horizontal orientation and I need the Textblock values to be separated by commas.</p>
  
  <p>I've reached this solution:</p>
  
  <pre><code>    &lt;DataTemplate x:Key="toStringDataTemplate"&gt;
          &lt;TextBlock  Margin="2,0,0,0"  TextWrapping="Wrap"&gt;
              &lt;Run Text="{Binding name}"/&gt;
              &lt;Run Text=","/&gt;
          &lt;/TextBlock&gt;
      &lt;/DataTemplate&gt;
  </code></pre>
  
  <p>But this outputs trailing commas: <code>value1,value2,value3,</code></p>
  
  <p>I need the last comma to be collapsed if its the last item in the Observable Collection.</p>
  
  <p>Any help would be appreciated.</p>