Reputation: 71
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
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