Yet Another Photo Gallery in Silverlight

Posted by Matt | Filed under , ,

Download Project: YetAnotherPhotoGallery.zip (407.90kb)

I spent the last few days creating my own photo gallery using Silverlight.  There are quite a few around the internet.  My favourite is Slide.Show by Vertigo.  That one was done using Silverlight 1.0.  I wanted to create my own using Silverlight 2 Beta 2.

This project has the following features:

  • Image download is "on demand"
  • 6 second slideshow
  • Image thumbnails
  • Navigation: play, pause, next, previous
  • Image upload
  • Full browser view

Some things that it does not have:

  • Image categories
  • Image index page
  • Full screen view
  • Upload progress bar
  • Auto-refresh after upload

I have a demo running here:  Yet Another Photo Gallery

Comments

August 22, 2008 23:34

trackback

Trackback from DotNetKicks.com

Yet Another Photo Gallery in Silverlight

DotNetKicks.com

August 23, 2008 23:07

xunding

It is way too slow, surprisingly slow. I stared at the black screen, thinking what the hell, it does not work. When I was about to click away, it started showing me the loading process. I waited. Then first picture loaded. Gorgeous! Then the silly loading animation. It is just too slow.

What is the advantage of doing it in silverlight vs doing it simply javascript

xunding United States

August 26, 2008 08:54

matt

The animation is the downloading of the image from the server.  If it's slow, it's probably due to the connection speed.

What is the advantage of using Silverlight over Javascript?  What about Flash or ActiveX?  A primary reason for using any framwork is its language and the functionality it gives to the developer.

I know C#, so I choose to use Silverlight instead of trying to do it in Javascript.  Just like I choose to use C++ instead of assembly languages.

matt Canada

September 16, 2008 01:47

erik

Downloaded your code, having some trouble getting it running.  Its looking for an xml file in the AppData/yapg folder, but you didn't provide sample graphics or a sample xml...  am I missing something?   Looks great, just need these files to continue... thanks!

erik United States

September 16, 2008 02:38

Matt

Run the app in a browser.  In the bottom-right, if you move your mouse to the area, is a + icon, click it to upload images.  That will create your Xml files correctly.

Matt Canada

September 16, 2008 16:41

erik

thanks for that info, i spent some time rolling around before i asked and didn't see anything pop up, i'll try again now... I'm thinking of adding a feature where the rollover areas are somehow indicated before you actually roll over them... I think the design of this gallery is very nice, but I did have some issues finding the hotspots initially, so I think it could benefit from that.  Thanks again!

erik United States

Comments are closed