WPF FlowDocumentReader Control


The FlowDocumentReader is the most advanced read-only wrapper that you can place around a FlowDocument. It offers buttons that allow the end-user to toggle between the rendering modes offered by the FlowDocumentScrollViewer and the FlowDocumentPageViewer, as well as out-of-the-box document searching and of course controls for zooming in and out. The FlowDocumentReader has a range of properties. Here’s a partial list of some of the most important ones:

ViewingMode – controls the initial viewing mode. The default is Page, but you can change that into Scroll or TwoPage , if you want another default view. This can still be changed by the user, unless specifically disabled.

IsFindEnabled – gives you the ability to disable searching in the document. If disabled, the search button will be removed from the toolbar.

IsTwoPageViewEnabled , IsPageViewEnabled and IsScrollViewEnabled – allows you to turn off a specific viewing mode for the reader. When set to false, this mode is no longer available for the reader and the button is removed from the toolbar.

Zoom – allows you to set the default zoom level. The standard is 100%, but you can change this by using the Zoom property.