Roger Martin wrote:
...
I wonder what amount of work is involved to incorporate Slide.Show 2. This would be a good project for a volunteer to work on. hint...hint...
...
I have written a preliminary version of such a control. You just have to rename the file from .txt to .ashx and place it in your /gs/handler/ directory on your web server. Should work with the latest version of GSP.
http://files.jwendl.net/delivery/GSPSlideShow/getslideshow.txtA few things to note:
1) This is sloppy (built it in less than a day)
2) The caching settings were doing funky things when someone logged in and logged out with the same web browser.
3) This gives you the FULL album list (flattened out) and all the 'slides' under each album (only GalleryObjectType.Image so far, I wasn't sure if anything else would work). So that means if you are like me with > 10k Images it could take a while to load.
4) There is a way on the Slide.Show 2 discussion forums about how to implement your own data provider. This looked like nasty code as it was done entirely in Javascript using JSON. I did not feel up to writing such a beast. Conceptually, though one could write something that actually only retrieves the 'slides' for individual albums. I leave that up to anyone who is daring to do that though.
This handler essentially creates an XML file that you can configure your Slide.Show 2 application to use.
Code:
<object type="application/x-silverlight-2" width="100%" height="100%" data="data:application/x-silverlight-2,">
<param name="background" value="black" />
<param name="source" value="Vertigo.SlideShow.xap" />
<param name="initParams" value="ConfigurationProvider=XmlConfigurationProvider;Path=Configuration.xml,DataProvider=XmlDataProvider;Path=/gallery/gs/handler/getslideshow.ashx" />
<a href=http://go2.microsoft.com/fwlink/?LinkID=124807 style="text-decoration: none;">
<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none" />
</a>
</object>
You can see my implementation at
http://www.jwendl.net/misc/slides/