[英]Displaying full screen image in xamarin forms
I have a cross platform application that is built using Xamarin Forms. 我有一个使用Xamarin Forms构建的跨平台应用程序。 The application contains images grid.
该应用程序包含图像网格。 I want to display full screen image with ability to zoom the image when user click on image.
我想显示全屏图像,并能够在用户单击图像时缩放图像。 I search and I found some solutions.
我搜索了,找到了一些解决方案。 One of the solutions says:
解决方案之一说:
<ContentPage.Content> <StackLayout HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"> <Image HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" x:Name="ScreenImage"></Image> </StackLayout> </ContentPage.Content>
The problem with this solution is that it doesn't support zoom. 该解决方案的问题在于它不支持缩放。 My question is that the best solution?
我的问题是最好的解决方案? Is there a plugin that perform this job?
有执行此工作的插件吗?
If the above solution is the best, how can I implement zooming? 如果以上解决方案是最好的,如何实现缩放?
看一下“添加捏手势识别器”-捏手势的常见情况是在捏位置执行图像的交互式缩放: https : //developer.xamarin.com/guides/xamarin-forms/application-基本面/手势/捏合/
i had the same problem and i fixed using the syncfusion control. 我有同样的问题,我使用了同步融合控件进行了修复。 ( syncfusion zooming ) syncfusion have the community license for your control and this is free.( communitylicense )
( syncfusion zooming )syncfusion具有社区许可证供您控制,这是免费的。( communitylicense )
xaml: XAML:
<imageeditor:SfImageEditor EnableZooming="true" MaximumZoomLevel="8"/>
if you want, i can help you fr configurated syncfusion in your solution 如果您愿意,我可以在您的解决方案中帮助您配置同步
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.