Skip Navigation LinksHome > View Post

Silverlight 2 File Uploader: Final!

As I'm sure you've already heard, Silverlight 2 has released (Tim Heuer has a great post here where DEVs can find everything they need to get started). And it's good news. Privately, I was a little dissapointed with the Beta 2 release, finding it very buggy and obstructive to work with. Fortunately, the Silverlight team have pulled out all the stops to make this a solid release and have even added some nice extras since Beta 2 for good measure.

To put the RTW version through its paces I set about converting my beta 2 based file upload control - and refactored to how I would have liked it to be structured in the first place but couldn't because I had to work around the bugs in Beta 2.

The two biggest changes are:

  • Implementation of a ViewModel pattern to get the most out of SL2's databinding
  • Use of the new ProgressBar

And here it is (this is the dummy version that doesn't actually upload files, just pretends to as a demonstration).

As mentioned above, this time I used the new ProgressBar control to show, er, progress! However, I liked the look and feel of the Beta 2 version I created so I used the re-templating functionality to make the ProgressBar look how I wanted it to.

Exciting times. Here's the code - as with all demos posted to this site, your own mileage may vary. Enjoy

Tags: Silverlight

 
Josh Post By Josh Twist
2:54 AM
17 Oct 2008

» Next Post: Windows Azure PoC for the RNLI
« Previous Post: LINQ group by query with projection

Comments are closed for this post.

Posted by Peter @ 17 Oct 2008 2:22 PM
Very nicely done!

Posted by Gabriel @ 24 Nov 2008 10:19 PM
I have VS 2008, but it says that I cannot open the project file. Do you need a special silverlight VS plugin or extension?

What do you think of swfupload? http://swfupload.org/

It uses flash. Do you think the silverlight approach is better?

Thanks,

Posted by Josh @ 25 Nov 2008 12:43 AM
You need the Silverlight tools for VS2008: http://go.microsoft.com/fwlink/?LinkId=129043

I work for Microsoft and I'm familiar with .NET therefore Silverlight is a natural choice for me. I'm unfamiliar with Flash - I'm sure it can do similar stuff but I'd struggle to change it.

© 2005 - 2014 Josh Twist - All Rights Reserved.