简体   繁体   English

WPF 文档查看器的分页

[英]pagination for WPF Documentviewer

Existing WPF application has a documentviewer to show different types of data ( Images/ WordFiles ).现有的 WPF 应用程序有一个文档查看器来显示不同类型的数据(图像/ WordFiles)。

I required to add pagination on this documentviewer.我需要在此文档查看器上添加分页。 user can also type page number to go on any specific page.用户还可以键入页码以进入任何特定页面。

I searched on google a lot but not got any useful information.我在谷歌上搜索了很多,但没有得到任何有用的信息。

If can we extend documentviewer functionality.. how can we achieve the required.如果我们可以扩展文档查看器功能......我们如何实现所需的。

This control should be used more likely used in your case:应该在您的情况下更可能使用此控件:

<FlowDocumentPageViewer>
        <FlowDocument>
           <Paragraph>
                 //your text here
            </Paragraph>         
        </FlowDocument>
    </FlowDocumentPageViewer>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM