简体   繁体   English

如何在Windows Phone 7中为动态创建的图像添加捏合缩放功能?

[英]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#- 我正在动态创建图像,并希望向应用程序添加拖放和缩小缩放功能这是我要在c#-中实现的xaml代码

<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>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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