Edward
Edward

Reputation: 7424

Issue with Panorama Background Image Fade-In Animation?

Hi I was using the sample found here for fading in a background image. Everything is working fine its just that before the fade in animation starts the image shows briefly then the animation starts.

No Background => Full Image => Image Disappears => Animation Starts => Full Image

Note I did add the exact same code as him but I still get this result. I did notice that his sample was written for WP7 7.0 which I'm guessing is the reason it's not loading exactly like the example he provided.

Has anyone found a workaround for this?

Upvotes: 2

Views: 663

Answers (3)

Edward
Edward

Reputation: 7424

Well even though it takes about a second and a half extra to load, I finally got it to stop blinking. Basically I would save the file to isolated storage, and then load the file from isolated storage instead of loading the image directly to the background after it finished downloading.

I got the idea based on the fact that the sample of loading the background using a local image worked perfectly.

Like I said it takes a little longer to download because of the saving and loading from isolated storage, but it works well.

Upvotes: 0

argh
argh

Reputation: 933

I bet you have opacity for image set to 1, and when it's loaded then you start showing it - resulting in bizarre flickering. Set opacity to 0 in xaml and then run your Storyboard (that animates opacity from 0 to 1).

Upvotes: 1

Ku6opr
Ku6opr

Reputation: 8126

Make your background initially hidden in xaml or by code in page constructor. Animation starts after page loaded, so background is shown from application start to Loaded event

Upvotes: 1

Related Questions