[英]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>
Check this out, this might help 检查一下,这可能会有所帮助
http://dotnetbyexample.blogspot.com/2010/08/windows-phone-7-multi-touch-panzoom.html http://www.codeproject.com/Articles/70449/Image-Manipulation-in-Multitouch-Development http://dotnetbyexample.blogspot.com/2010/08/windows-phone-7-multi-touch-panzoom.html http://www.codeproject.com/Articles/70449/Image-Manipulation-in-Multitouch-Development
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.