【问题标题】:How can I go specific page on FlowDocumentReader?如何转到 FlowDocumentReader 上的特定页面?
【发布时间】:2016-10-09 13:12:13
【问题描述】:

如何进入 FlowDocumentReader 上的特定页面? 当然,我在 FlowDocumentReader 上使用页面模式。

听说 FlowDocumentPageViewer 有 GoToPage( ) 方法。所以使用 FlowDocumentPageViewer 比 FlowDocumentReader 更容易。

但是,我希望使用页面模式和滚动模式。 我希望在 FlowDocumentReader 上仅在页面模式下使用 GoToPage 功能。

我可以得到解决方案 - 我怎样才能转到 FlowDocumentReader 上的特定页面? (或者我想知道如何从 FlowDocumentReader 获取 FlowDocumentPageViewer。我认为 FlowDocumentReader 有 3 种模式(如 FlowDocumentPageViewer、scrollviewer...)。所以可以转换。

我可以知道方法吗?

【问题讨论】:

    标签: wpf flowdocumentreader


    【解决方案1】:

    你想要的两件事都是不可能的。 但是,您可以通过从 FlowDocumentReader 扩展来创建一个新类。

    可以查看FlowDocumentReader的源码-https://referencesource.microsoft.com/#PresentationFramework/src/Framework/System/Windows/Controls/FlowDocumentReader.cs,ccac5a02d450af41

    所以,试着创造你想要的。

    【讨论】:

      猜你喜欢
      • 2011-06-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多