title: Binding MediaElement to slider position in WPF
body: <p>Tried binding Maximum value of slider to media element's duration and binding slider's current value to the position of media element, but but for some reasons it doesn't. </p>
  
  <p>I want the slider to move it's thumb while the video is playing. </p>
  
  <pre><code>&lt;Slider x:Name="videoSlider" Value="{Binding ElementName=mp3MediaElement, Path=Position}" 
  ValueChanged="videoSlider_ValueChanged" IsMoveToPointEnabled="True" 
  Maximum="{Binding ElementName=mp3MediaElement, Path=NaturalDuration}" 
  AllowDrop="True" DataContext="{Binding ElementName=mp3MediaElement}" /&gt;
  </code></pre>