LiGhT_WoLF
LiGhT_WoLF

Reputation: 71

Windows Phone 8.1 image scaling

How i can show the image, that user can scale like in gallery? I meant scaling with two fingers and etc. User cant resize simple < Image > object.

Upvotes: 1

Views: 830

Answers (1)

the_nuts
the_nuts

Reputation: 6054

<Grid>
    <ScrollViewer ZoomMode="Enabled">
        <Image Source="myimage.jpg" />
    </ScrollViewer>
</Grid>

You can also add ScrollViewer's MinZoomFactor and MaxZoomFactor (default values are 0,1 and 2)

Upvotes: 1

Related Questions