将页脚添加到FlowDocumentsdocuments [英] add footer to FlowDocumentsdocuments
本文介绍了将页脚添加到FlowDocumentsdocuments的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
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.
要获取代码,请转到 查看全文