Dynamic data source refresh

Apr 12, 2011 at 11:23 AM

It seems as if the Slide.Show component only loads data from the XML data source once on start-up. 


We're using the component in a web page showing a large album with many slides (a couple of hours' worth of content).  During this time, there are services updating the content in the source folders and regenerating the XML data source, but the Slide.Show component never reloads the XML data unless the page gets reloaded.  We can't accurately schedule a page reload every X hours because the slide display durations vary and there may be video content in the mix.


The question to the guys knowing the source best is:  "How can we get the component to reload its data from the XML data source when it reaches the end of an album?"


Thanks in advance!

May 10, 2011 at 5:02 PM

If it was me, I might try to call the

		private void App_Startup(object sender, StartupEventArgs e)

method again (as seen in App.xaml.cs) when the last slide is reached while the slideshow is actually running (in "play" mode).


But... that might get annoying, or confusing if someone manually clicks on the last slide and doesn't expect the source to refresh itself.


What you might want to do instead is add a button to the player (call it "refresh" or something, and add a little pop-up tooltip to explain what it does) that users can click themselves in order to refresh the slideshow/source.