简体   繁体   中英

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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM