Blank pages when implementing DocumentPaginator
问题 I'm trying to implement a Paginator like this: public class MyPaginator : DocumentPaginator{ // ommitting details... public override DocumentPage GetPage(int pageNumber) { DocumentPage page = new DocumentPage(canvas); return page; } } It compiles, it runs, but the page is blank (white). the 'canvas' is an instance of System.Windows.Controls.Canvas. When I put it in a on-screen container like ScrollViewer it renders perfectly. XpsDocument _xpsDocument = CreateXpsDoc(myPaginatorInstance); The