I want to add footer to FlowDocuments in wpf. Please help me how to add?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
After you load an XAML file, you will get an IDocumentPaginatorSource object, from which you can get its DocumentPaginator.
You can wrapper around DocumentPaginator, overriding its GetPage method to add header, footer, or anything else like watermark.
For getting the code goto Convert XAML Flow Document to XPS with Style
回答2:
look at this : http://www.codeproject.com/KB/WPF/PimpedDocumentPaginator.aspx