MANAGING DOCUMENTS
WPF includes three different kinds of documents: flow documents, fixed documents, and XPS documents. These different kinds of documents provide support for high-end text viewing and printing.
The following table summarizes the controls that WPF provides for viewing these kinds of documents.
CONTROL | PURPOSE |
DocumentViewer | Displays fixed documents page by page. |
FlowDocument PageViewer | Displays a flow document one page at a time. If the control is wide enough, it may display multiple columns although it still displays only one page at a time. |
FlowDocument Reader | Displays flow documents in one of three modes. When in single page mode, it acts as a FlowDocumentReader. When in scrolling mode, it acts as a FlowDocumentScrollViewer. In book reading mode, it displays two pages side by side much as a real book does. |
FlowDocument ScollViewer | Displays an entire flow document in a single long scrolling page and provides scroll bars to let the user move through the document. |
Get Visual Basic 2012 Programmer's Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.