Slideshow does not start before refresh with F5

Dec 1, 2010 at 8:41 AM

I have a solution with a slideshow. My slideshow is placed in the bottom of my page and is not visible on load. If I scoll down to the slideshow it is empty but if I refresh the page with F5 the Slideshow works perfect.

You can try it on http://www.vertigo.com/slideshow.aspx resize your browserwindow until the slideshow is not visible on load of the page. If your scroll down the slideshow is empty, but if your press F5 it works perfect.

Dec 2, 2010 at 3:00 PM

This is such interesting behavior.  The Silverlight object does not paint itself if rendered outside the visible part of the browser window.  My application has the same behavior but my gallery is visible when the page first loads.

This is a complete stab in the dark guess. Place a duplicate copy of the gallery object higher on the page, in the initially visible area, and make it 1 x 1 pixel.  I am thinking if it loads, maybe the other one will as well if they are exact duplicates.  I am really kinda doubtful on this idea though but figure it may be a clumsy workaround.

Here are a few things I found.  Please post if you find a solution to this puzzle.

"Set the Windowless property to true only when necessary. Performance is seriously impacted when in windowless mode (for example, tearing in animations). Due to this, media playback is not recommended at all in windowless mode."
http://msdn.microsoft.com/en-us/library/cc189071(VS.95).aspx#windowless_true_is_expensive

"...if the Silverlight application is invisible. CompositionTarget.Rendering will fire the even whenever the screen renders (e.g. if your Silverlight application window is covered by another application CompositionTarget.Rendering may not be called)...
http://blogs.msdn.com/b/nikola/archive/2009/07/12/silverlight-3-speed-optimizations-the-ultimate-game-loop.aspx

"...If the Silverlight plugin is not visible initially as on msdn.microsoft.com, it does not paint. This occurs because the plugin expects proper paints to come from the browser..."
http://codereview.chromium.org/11492

Dec 8, 2010 at 6:47 AM

It did not work :(

Hope someone have new ideas.