我是 Xamarin 的新手,特别是 MVVM。我有一个显示图像的 ListView。
<ListView ItemsSource="{Binding Urls}" IsVisible="True" VerticalScrollBarVisibility="Always"
HorizontalScrollBarVisibility="Always" HorizontalOptions="Fill" VerticalOptions="Fill"
HasUnevenRows="True">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout Orientation="Vertical" HorizontalOptions="Fill" VerticalOptions="FillAndExpand" Padding="2">
<ffimageloading:CachedImage Source="{Binding .}" Aspect="AspectFill" Margin="15">
<ffimageloading:CachedImage.GestureRecognizers>
<TapGestureRecognizer Command="{Binding Source={x:Reference ImgListView},Path=BindingContext.ImageDoubleTappedCommand}" />
</ffimageloading:CachedImage.GestureRecognizers>
</ffimageloading:CachedImage>
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
现在我想要双击和捏缩放的缩放行为。我在互联网上找到了不同的链接,但那些没有实现 MVVM。例如:https ://www.c-sharpcorner.com/article/zoom-in/ 。如何在 MVVM 中获得缩放功能?