我如何在Windows Phone 8中实现捏合缩放和多点触控功能?在我的应用程序中,我在网格中添加了3个图像容器,我需要在我的图像上执行上述操作。请有经验的开发者帮助我在我的应用程序中实现此功能。提前感谢您。
Stez
我如何在Windows Phone 8中实现捏合缩放和多点触控功能?在我的应用程序中,我在网格中添加了3个图像容器,我需要在我的图像上执行上述操作。请有经验的开发者帮助我在我的应用程序中实现此功能。提前感谢您。
Stez
我的解决方案适用于WP7.5和WP8:
XAML代码
<StackPanel x:Name="Scroll" Margin="0">
<Image CacheMode="BitmapCache" Name="FrontCover" Source="{Binding FullCover}" >
<Image.RenderTransform>
<CompositeTransform x:Name="transform" ScaleX="1" ScaleY="1" />
</Image.RenderTransform>
<toolkit:GestureService.GestureListener>
<toolkit:GestureListener PinchDelta="OnPinchDelta" PinchStarted="OnPinchStarted" DragDelta="OnDragDelta" />
</toolkit:GestureService.GestureListener>
</Image>
</StackPanel>
我认为这会对其他人有所帮助