FlowDocumentReader includes features that enable the user to dynamically choose between various viewing modes, including a single-page (page-at-a-time) viewing mode, a two-page-at-a-time (book reading format) viewing mode, and a continuous scrolling (bottomless) viewing mode. If you do not need the ability to dynamically switch between different viewing modes, there are lighter-weight flow content viewers that are fixed in a particular viewing mode. FlowDocumentPageViewer displays flow content in single-page viewing mode, and FlowDocumentScrollViewer displays flow content in continuous-scrolling mode. For more information about available display modes, see FlowDocumentReaderViewingMode.
The following figure shows a FlowDocumentReader control with its default user interface (UI).
-
Content Area - The content area displays the contents of the FlowDocument specified by the Document property.
-
Tool Bar - The default toolbar is docked underneath the content area, and hosts controls for searching content, navigating pages, selecting a viewing mode, and changing the zoom level.
-
Find Button - The Find button brings up a Find dialog, which enables the user to search the contents of the FlowDocumentReader for specified terms or phrases. The Find button will not be shown if IsFindEnabled is false. For more information, see Find.
-
Page Navigation Controls - The page navigation controls include a button to jump to the next page (the down arrow) or previous page (the up arrow), as well as indicators for the current page number and total number of pages.
-
Viewing Mode Buttons - The viewing mode buttons enable the user to select from available viewing modes. For more information, see ViewingMode.
-
Zoom Controls - The zoom controls enable the user to increase or decrease the zoom level by clicking the plus or minus buttons, respectively. The zoom controls also include a slider for adjusting the zoom level. For more information, see Zoom.
The default toolbar UI does not include a Print button.
FlowDocument is the only allowable child element for a FlowDocumentReader. A FlowDocumentReader element may host no more than one FlowDocument.