title: Binding timespan in wpf mvvm, and show only minutes:seconds?
body: <p>I want to be able to show minutes and seconds in a textbox. The <code>TextBox</code> is bound towards a property, which is a <code>TimeSpan</code>. In the textbox, the default is : &quot;00:00:00&quot;.</p>
  <p>This works fine, but how to show only 00:00 where the hours portion is removed.</p>
  <p>How do I do this?</p>
  <p>This is my binding:</p>
  <pre><code>public TimeSpan MaxTime
  {
      get
      {
          if (this.Examination.MaxTime == 0)
              return TimeSpan.Zero;
          else
              return maxTime;
      }
      set
      {
          maxTime = value;
          OnPropertyChanged(&quot;MaxTime&quot;);
          TimeSpan x;
          this.Examination.MaxTime = int.Parse(maxTime.TotalSeconds.ToString());                              
      }
  } 
  </code></pre>
  
  <pre><code>&lt;TextBox Text=&quot;{Binding Path=MaxTime,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}&quot;/&gt;
  </code></pre>