Video slider control

image The updated Slider control in Silverlight 2 Beta 2 burned a number of developers, including myself.  I relied heavily on the MouseLeftButtonDown and MouseLeftButtonUp events that are now handled by the Slider.  Another feature lacking in the Slider is the ability to show the amount of content downloaded.  This is a pretty standard feature of web based video players.  Time to call the CustomControl to write a new Slider that enables you do both clicking on the slider track which moves the Thumb to the clicked location and adding a download progress indicator.

Here is the resulting control:

Common slider

With the new Slider you can click on both the right and left sides of the Thumb to update the position.

Now you can send the DownloadProgress from the MediaElement to this control and it will update the the download progress bar.


The control is on CodePlex (Download the code).




4 comments so far

  1. […] with the Slider not recoginzing MouseLeftButtonUp or MouseLeftButtonDown events, check out the VideoSlider Possibly related posts: (automatically generated)Create memories of your day with the interactive […]

  2. […] Video Slider Control (Corey Schuman) […]

  3. […] Shumann takes the slider control one step further with his Video slider control Manish Dalal revisits Validation for Silverlight apps Mike Snow gives us his tip on How to […]

  4. […] Video slider control […]

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: