I would like to associate the Position property of the MediaElement on the Value slider field, like this:
<MediaElement Position="{Binding Path=Value, Element=Slider}" />
But this code does not work, tell me, what is the easiest way to do this?
Through DataBinding
does not work, because MediaElement.Position
not a DependencyProperty
.
On MSDN there is an example of creating a control panel for managing a MediaElement .
Hope will help.
<MediaElement Position="{Binding Path=Value, ElementName=Slider}" />
MediaElement.Position
not a DependencyProperty, therefore it cannot be set via DataBinding. - Eugene CheverdaSource: https://ru.stackoverflow.com/questions/8170/
All Articles