c# - 向 FlowDocument 文档添加页脚

标签 c# wpf flowdocument

我想为 FlowDocuments 添加页脚在 wpf 中。请帮助我如何添加?

最佳答案

加载 XAML 文件后,您将获得一个 IDocumentPaginatorSource 对象,您可以从中获取其 DocumentPaginator。

您可以包装 DocumentPaginator,重写其 GetPage 方法以添加页眉、页脚或任何其他内容(如水印)。

获取代码转到 Convert XAML Flow Document to XPS with Style

关于c# - 向 FlowDocument 文档添加页脚,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1432170/

相关文章:

c# - 将字典列表转换为类列表

c# - 在 WPF 中使用系统图标作为应用程序图标

WPF 绑定(bind)和资源查找复杂性

xaml - FlowDocument 中同一行上的两个 block

javascript - Kendo UI Grid 将 id 从文本输入传递到读取命令

c# - Ninject 基于字符串的绑定(bind)

c# - 手动添加对 Entity Framework 的引用

c# - 运行 WPF 应用程序的可执行文件时 log4net 不工作

wpf - 如何在 FlowDocument 中将表格放在一起?

C# FlowDocument 到 HTML 的转换