Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 wpf 中为FlowDocuments添加页脚。请帮我如何添加?
加载 XAML 文件后,您将获得一个 IDocumentPaginatorSource 对象,您可以从中获得其 DocumentPaginator。
您可以包装 DocumentPaginator,覆盖其 GetPage 方法以添加页眉、页脚或其他任何内容,如水印。
要获取代码,请转到Convert XAML Flow Document to XPS with Style
看看这个: http: //www.codeproject.com/KB/WPF/PimpedDocumentPaginator.aspx