如何在FlowDocumentReader上转到特定的页面?当然,我在FlowDocumentReader上使用了页面模式。
我听说FlowDocumentPageViewer有GoToPage( )方法。因此,使用FlowDocumentPageViewer而不是FlowDocumentReader更容易。
但是,我希望使用页面模式和滚动模式。我希望在FlowDocumentReader上只在页面模式下使用FlowDocumentReader函数。
我能得到解决方案吗?如何在FlowDocumentReader上访问特定的页面?(或者我想知道如何从FlowDocumentReader获得FlowDocumentPageViewer。我认为FlowDocumentReader有3种模式(如FlowDocumentPageViewer、滚动查看器.)。因此,希望有可能改变。
我能知道怎么做吗?
发布于 2016-10-09 05:12:13
你想要的两样东西都是不可能的。但是,您可以通过从FlowDocumentReader扩展来创建一个新类。
您可以看到FlowDocumentReader - https://referencesource.microsoft.com/#PresentationFramework/src/Framework/System/Windows/Controls/FlowDocumentReader.cs,ccac5a02d450af41的源代码。
所以,试着创造你想要的。
https://stackoverflow.com/questions/39935825
复制相似问题