mannuscript
mannuscript

Reputation: 4951

how to add pinch zoom functionality to dynamically created image in windows phone 7?

I am creating images dynamically and want to add drag-drop and pinch zoom functionality to the app Here is the xaml code which i want to implement in the c#-

<Image  Width="100" Height="100" Name="transform" Source="/PhoneApp22;component/Images/abc.png" >
    <Image.RenderTransform>
        <TransformGroup>
            <CompositeTransform x:Name="transform2"/>
        </TransformGroup>
    </Image.RenderTransform>
    <toolkit:GestureService.GestureListener>
        <toolkit:GestureListener PinchStarted="OnPinchStarted" PinchDelta="OnPinchDelta"
                                     DragDelta="GestureListener_DragDelta"/>
    </toolkit:GestureService.GestureListener>
</Image>

Upvotes: 1

Views: 360

Answers (1)

Related Questions