Windows Phone Panorama background image cropped when smaller than screen size.

Wednesday, May 16, 2012 / Posted by Luke Puplett /

CroppedPerfect

Notice that the background image repeats just before the ‘r’ on the right side of the left image, but its fine on the other image.

This image on the left is 512x384 whereas the image on the right is twice the size, 1024x768. It seems that when the image must be stretched to fill the height of the screen, the width is truncated. When an image must be shrunk to fit, then the width is preserved.

The Sretch property isn’t required for the larger image, but it works when set as Fill or UniformToFill. The smaller image needs UniformToFill to look correct.

Labels: , ,

0 comments:

Post a Comment