[英]how to add pinch zoom functionality to dynamically created image in windows phone 7?
我正在动态创建图像,并希望向应用程序添加拖放和缩小缩放功能这是我要在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.