如何通过GetPageAsync与XpsDocumentWriter异步使用DocumentPaginator?

Fau*_*ury 10 wpf xpsdocument documentpaginator

这里的想法是我有一个DocumentPaginator,我想与XpsDocumentWriter或PrintDialog一起使用,因为两者都可以选择打印给定的分页器.当我使用其中任何一个,即XpsDocumentWriter.Write [Async]或PrintDialog.PrintDocument时,通过GetPage与GetPageAsync加入paginator,我在派生的DocumentPaginator类中重写了它.

除了手动使用分页器并将Visuals提供给文档编写器之外,有没有办法触发DocumentPaginator的Asyc函数的使用?