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.
I want the slider to move it’s thumb while the video is playing.
<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}" />
I didn’t use binding..
I had a similar issue and used timer for this (My code is in Silverlight by it suppose to be the same on WPF):
First direction (movie updates the slider)
Second direction (user updates the slider)
on form ctor or something like this write the following line:
and the event handler is: