Scale an image without filling screen

225 Views Asked by At

I did a simple imageviewer and when I scale an image it takes the whole screen. I want it to get bigger but inside its grid.

1

There are 1 best solutions below

2
On

Not really enough information here, normally just putting an Image control into the Grid should do as it stretches to its bounds.

<Grid>
    <Image Source="..."/>
<Grid/>