在文档查看器中翻页 [英] Page flipping in document viewer

查看:76
本文介绍了在文档查看器中翻页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我一直在考虑移植为Windows Modern UI开发的文档查看器.文档查看器使用Windows现代版UI中的FlipView控件,但是由于Windows Phone中没有等效的控件,因此我对继续进行操作有点不知所措 从这里.

I've been looking at porting a document viewer that I've developed for Windows Modern UI. The document viewer uses the FlipView control from Windows modern UI, but since there is no equivalent in the Windows Phone, I am a bit at a loss as to where to proceed from here.

Windows Phone中似乎确实没有合适的控件.

It seems that there really isn't a suitable control for this in the Windows Phone.

我一直在看一下"Pivot"和"Panorama"控件,但是它们似乎不太正确.我已经使用Pivot进行了一些操作,以删除标题并仅显示内容,但是任何两个项目之间都有巨大的空白(我看到有人 建议仅使用标题,而不是在内容上进行改进).另一个问题是数据透视表允许循环播放(即从最后一页转到第一页,反之亦然).我没有找到禁用这种循环行为的方法.

I've been looking a bit at the Pivot and Panorama controls, but they don't seem quite right. I've played around a bit with the Pivot to remove the header and only show the content, but there's an enormous blank space between any two items (I saw someone suggest using only the headers, as opposed to the content to improve on that). Another problem is that the pivot allows looping (i.e. going from the last page to the first or vice versa). I didn't find a way to disable this looping behavior.

如果有人有任何建议,将非常欢迎.

If anyone has any suggestions, that would be very welcome.

干杯

Tomas Hofmann

Tomas Hofmann

推荐答案

您可以尝试使用现有的LongListSelector或其前身ListBox.添加侧边控件以允许除滑动操作之外的其他页面.

You could experiment with the existing LongListSelector or its predecessor ListBox. Add side controls to allow paging in addition to swipe operations.

Silverlight工具包的 控件,因此您可以在源代码级别完全修改这些组件(适用于7.x的LongListMultiSelector和LongListSelector).

Full source access is available in the Silverlight Toolkit's controls so you can fully modify those components (LongListMultiSelector and LongListSelector for 7.x) at the source level.

希望这会有所帮助,
标记

Hope this helps,
Mark


这篇关于在文档查看器中翻页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆