Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The DocumentViewer control is used to view FixedDocument content (such as XML Paper Specification (XPS) documents) in a paginated format.
Styles and templates
This topic describes the styles and templates for the DocumentViewer control. You can modify the default ControlTemplate to give the control a unique appearance. For more information, see What are styles and templates? and How to create a template for a control.
Content property
The DocumentViewer control uses the Document property as its content property, which specifies the FixedDocument content to display.
Parts
The following table lists the named parts for the DocumentViewer control.
| Part | Type | Description |
|---|---|---|
| PART_ContentHost | ScrollViewer | The content and scrolling area. |
| PART_FindToolBarHost | ContentControl | The search box, at the bottom by default. |
Visual states
This control doesn't define any visual states.
See also
.NET Desktop feedback