Rescaling an Image?

Hi, I’m having trouble rescaling an image (from code) I’m having twofold problems (I’m using UIElements.Image) similar but different:

  1. Resizing: Instead of scaling with the container it just cuts off, I can’t seem to find any setting that rescales with aspect ratio to fit the container. If this isin’t a built in feature is their some way I can replicate this?

  2. It doesn’t seem that adjusting the layout width/height matters at all, the uv also doesn’t seem to affect anything? What’s the right way to change the display parameters for an image?

For reference, I’m display items in a list-view, which works great, I’d just like to rescale the images to say 20% of their original size (bigger than a thumbnail but same idea)

Cheers =]

Hi broots,

Have you set the scale mode of the image?

From what I understand, you whant the ScaleMode.ScaleToFit behavior.