title: WPF Slider event which occurs only when the value is changed by the user
body: <p>I am making a music player in which I need to create a seek. Now I have done it in WinForms with a TrackBar in this way:</p>
  
  <ul>
  <li>Use a Timer to keep the position of the media and the value of the TrackBar synced.</li>
  <li>Use the <code>Scroll</code> event to change the media position when the user drags the TrackBar's thumb.</li>
  </ul>
  
  <p>But in WPF, there is no <code>Scroll</code> event and the <code>ValueChanged</code> event fires even when the value is changed in code. So, when I use a <code>DispatcherTimer</code> to update the slider position, even then the <code>ValueChanged</code> event is fired which in turn changes the media position. As a result, the media doesn't play properly.</p>
  
  <p>So I need an Event which fires only when the value of a <code>Slider</code> is changed by the user.</p>
  
  <p>I have already come across <a href="https://stackoverflow.com/questions/25593774/differ-between-valuechanged-by-user-or-automatically-on-slider">this question</a> but it doesn't have a proper answer.</p>
  
  <p>Any help will be appreciated. Thanks in anticipation.</p>