I placed an image control in a scrollviewer just like tnis:
<ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" >
<Image Source="/Test/1.jpg" Width="320">
<Image.RenderTransform>
<CompositeTransform ScaleX="{Binding Path=Value, ElementName=slider}"/>
</Image.RenderTransform>
</Image>
</ScrollViewer>
As th code showed , I added a slider to control the Compositetransform of the image, but when I change the value of the slider, nothing happened?
And I also tried to attach a zoom&pan behavior(depended on the toolkit) on the image, unfortunately, I could scroll up and down, but I could not zoom in/out the image. It seemed that the Scrollviewer blocked the pinch manipulation.
As we know, the Scrollviewer control had a "ZoomMode" property in WPF but deprecated in Windows Phone. So how could I implement the iamge zooming in the scrollviewer, Could anyone give me a help?