本文介绍了将页脚添加到FlowDocumentsdocuments的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在 FlowDocuments .请帮我怎么添加?
I want to add footer to FlowDocuments in wpf. Please help me how to add?
推荐答案
加载XAML文件后,您将获得IDocumentPaginatorSource对象,从中可以获取其DocumentPaginator.
After you load an XAML file, you will get an IDocumentPaginatorSource object, from which you can get its DocumentPaginator.
您可以包装DocumentPaginator,重写其GetPage方法以添加页眉,页脚或其他任何水印.
You can wrapper around DocumentPaginator, overriding its GetPage method to add header, footer, or anything else like watermark.
要获取代码,请转到使用样式将XAML流文档转换为XPS
这篇关于将页脚添加到FlowDocumentsdocuments的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!