This project is read-only.

Slideshow does not start before refresh with F5

Dec 1, 2010 at 9: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 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 4: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."

"...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)...

"...If the Silverlight plugin is not visible initially as on, it does not paint. This occurs because the plugin expects proper paints to come from the browser..."

Dec 8, 2010 at 7:47 AM

It did not work :(

Hope someone have new ideas.