title: WPF: How do I apply custom formatting to a ListView?
body: <p>My ListView is petty simple:</p>
  
  <pre><code>&lt;ListView ItemsSource="{Binding Path=ActiveCounters}"&gt;
      &lt;ListView.View&gt;
          &lt;GridView&gt;
              &lt;GridViewColumn  Header="Name" DisplayMemberBinding="{Binding Path=Name}" /&gt;
              &lt;GridViewColumn  Header="Value"  DisplayMemberBinding="{Binding Path=Value}" /&gt;
              &lt;GridViewColumn  Header="As Of Date"  DisplayMemberBinding="{Binding Path=AsOfDate}" /&gt;
              &lt;GridViewColumn  Header="Duration"  DisplayMemberBinding="{Binding Path=Duration}" /&gt;
              &lt;GridViewColumn  Header="Last Modified Date"  DisplayMemberBinding="{Binding Path=Timestamp}" /&gt;
          &lt;/GridView&gt;
      &lt;/ListView.View&gt;
  &lt;/ListView&gt;
  </code></pre>
  
  <p>What I want to do is:</p>
  
  <ul>
  <li>Format "Value" using the built-in format "D0"</li>
  <li>Format "AsOfDate" and "Last Modified Date" using the custom string "MMM d hh:mm:ss tt"</li>
  <li>Format "Duration" with a function defined as "String DurationString(TimeSpan)</li>
  </ul>