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?

    2 answers 2

    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}" /> 
      • Minus for inattention, MediaElement.Position not a DependencyProperty, therefore it cannot be set via DataBinding. - Eugene Cheverda
      • I understood this .. I meant that the syntax error is: not Element = Slider, but ElementName = Slider should be .. - Breaker