Building a Volume Control for your Hulu inspired SilverLight video player



This is Part 5 in a series of tutorials demonstrating how to build a Hulu inspired video player in Silverlight 3.
In this video we will show how to databind a media element’s isMuted property to a toggle button volume control’s isChecked property.

View all parts of the tutorial
Part 1 – Building a Play-Pause control
Part 2 – Loading external video
Part 3 – Building a Progress Bar
Part 4 – Building a Download Progress Bar
Part 5 – Building a Volume Control
Part 6 – Building the Time Display
Part 7 – Volume Slider control
Part 8 – Start playing button

XAML code


		<MediaElement x:Name="mp" Source="http://www.paulyanez.com/interactive/blog/HD/darkknight.wmv" DownloadProgressChanged="downloadProgressHandler" Margin="0,0,-1,-1" AutoPlay="True" IsMuted="{Binding IsChecked, ElementName=volumeControl, Mode=OneWay}" />

Leave a comment