本文介绍了WP8 中类似 WinRT FlipView 的控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我需要像在 Windows Phone 8 照片应用程序中一样显示一组图像,您可以在其中左右滑动图像.

In my app I need to display a collection of Images exactly like in the Windows Phone 8 Photo App where you can swipe right and left between the images.

我尝试了 Panorama 和 Pivot 控件,但两个控件的行为都不像 WinRTs FlipView.

I've tried both the Panorama and Pivot control but both controls don't behave like WinRTs FlipView.

Panorama 非常适合,但似乎将Right-Peek"数量硬连线到控件中.(如有不对请指正)

Panorama fits quite well but appears to have the "Right-Peek" Amount hardwired into the control. (please correct me if I'm wrong)

Pivot 在轻扫期间依次显示黑色(手指仍然向下),并且仅在您松开手指并且控件将下一个项目滚动到位时才显示下一个图像.

Pivot in turn shows blackness during swipes (finger still down) and only displays the next image when you release your finger and the control scrolls the next item into place.

有什么建议吗?

推荐答案

Windows Phone 中没有直接等效的 FlipView.Panorama 和 Pivot 控件具有非常不同的功能,并且专为不同的目的而设计.

There is no direct equivalent to the FlipView in Windows Phone. The Panorama and Pivot controls have very different functionalities and are designed fro different purposes.

Telerik 有一个 SlideView 控件与照片应用程序使用的本机控件非常相似.
作为 Nokia Premium Developer Program 的一部分,您还可以免费获得 Telerik 控件.(如果您没有 Dev Center 订阅,则值得调查.)

Telerik have a SlideView control which is very similar to the native control used by the photos app.
You can also get the Telerik controls free as part of the Nokia Premium Developer Program. (Worth investigating if you don't have a Dev Center subscription.)

这篇关于WP8 中类似 WinRT FlipView 的控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-06 05:13