Tech Off Thread

2 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

Binding Volume property of MediaElement with Slider

Back to Forum: Tech Off
  • User profile image
    trun_gup

    i am using MediaElement for audio play, stop, pause opeartion in Avalon/C#

    I want to bind its Volume property with Slider control. How is this done in C#.

  • User profile image
    trun_gup


    i found the code in XAML

    <MediaElement Name="mediaobject" Source="myMovie.wmv" />

        <Slider Minimum="0" Maximum="1" Value="{Binding Mode=TwoWay, ElementName=mediaobject, Path=Volume}" />

    But i want the Procedural code for this.!!

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.