PdfViewerControl Members

Constructors

Name Description
PdfViewerControl()

Initializes a new instance of the PdfViewerControl class with default settings.

Fields

Name Description
ActualIsFindTextPanelVisibleProperty

Identifies the PdfViewerControl.ActualIsFindTextPanelVisible dependency property.

ActualIsLoadingProperty

Identifies the PdfViewerControl.ActualIsLoading dependency property.

ActualIsPageBarVisibleProperty

Identifies the PdfViewerControl.ActualIsPageBarVisible dependency property.

ActualIsSettingsBarVisibleProperty

Identifies the PdfViewerControl.ActualIsSettingsBarVisible dependency property.

ActualIsZoomBarVisibleProperty

Identifies the PdfViewerControl.ActualIsZoomBarVisible dependency property.

ActualOverlaySettingsProperty

Identifies the PdfViewerControl.ActualOverlaySettings dependency property.

ContentMarginProperty

Identifies the PdfViewerControl.ContentMargin dependency property.

CornerRadiusProperty

Identifies the PdfViewerControl.CornerRadius dependency property.

CurrentPageIndexProperty

Identifies the PdfViewerControl.CurrentPageIndex dependency property.

CurrentPageNumberProperty

Identifies the PdfViewerControl.CurrentPageNumber dependency property.

CurrentViewProperty

This member supports the internal infrastructure and is not intended to be used directly from your code.

CurrentZoomFactorProperty

Identifies the PdfViewerControl.CurrentZoomFactor dependency property.

DefaultZoomFactorProperty

Identifies the PdfViewerControl.DefaultZoomFactor dependency property.

DocumentPrintingQualityProperty

Identifies the PdfViewerControl.DocumentPrintingQuality dependency property.

DocumentProperty

Identifies the PdfViewerControl.Document dependency property.

DocumentSourceProperty

Identifies the PdfViewerControl.DocumentSource dependency property.

DocumentUriProperty

Identifies the PdfViewerControl.DocumentUri dependency property.

IsDataLoadingProperty

Identifies the PdfViewerControl.IsDataLoading dependency property.

IsFindTextPanelVisibleProperty

Identifies the PdfViewerControl.IsFindTextPanelVisible dependency property.

IsPageBarVisibleProperty

Identifies the PdfViewerControl.IsPageBarVisible dependency property.

IsSettingsBarVisibleProperty

Identifies the PdfViewerControl.IsSettingsBarVisible dependency property.

IsZoomBarVisibleProperty

Identifies the PdfViewerControl.IsZoomBarVisible dependency property.

LeftSideSettingsBarItemsSourceProperty

Identifies the PdfViewerControl.LeftSideSettingsBarItemsSource dependency property.

MaxZoomFactorProperty

Identifies the PdfViewerControl.MaxZoomFactor dependency property.

OverlaySettingsProperty

Identifies the PdfViewerControl.OverlaySettings dependency property.

OverlaySettingsTemplateProperty

Identifies the PdfViewerControl.OverlaySettingsTemplate dependency property.

PART_PdfOverlay
PART_SemanticZoom
PageCountProperty

Identifies the PdfViewerControl.PageCount dependency property.

PageMarginProperty

Identifies the PdfViewerControl.PageMargin dependency property.

PageSpacingProperty

Identifies the PdfViewerControl.PageSpacing dependency property.

PdfDocumentLoadingPolicyProperty

Identifies the PdfViewerControl.PdfDocumentLoadingPolicy dependency property.

PdfViewModeProperty

Identifies the PdfViewerControl.PdfViewMode dependency property.

PrintDocumentCommandProperty

Identifies the PdfViewerControl.PrintDocumentCommand dependency property.

PrintDocumentSourceProperty

Identifies the PdfViewerControl.PrintDocumentSource dependency property.

RightSideSettingsBarItemsSourceProperty

Identifies the PdfViewerControl.RightSideSettingsBarItemsSource dependency property.

SettingsBarFlyoutItemTemplateSelectorProperty

Identifies the PdfViewerControl.SettingsBarFlyoutItemTemplateSelector dependency property.

ShowBookmarksButtonProperty

Identifies the PdfViewerControl.ShowBookmarksButton dependency property.

ShowLeftSideDefaultSettingsBarItemsProperty

Identifies the PdfViewerControl.ShowLeftSideDefaultSettingsBarItems dependency property.

ShowOpenDocumentButtonProperty

Identifies the PdfViewerControl.ShowOpenDocumentButton dependency property.

ShowPrintDocumentButtonProperty

Identifies the PdfViewerControl.ShowPrintDocumentButton dependency property.

ShowRightSideDefaultSettingsBarItemsProperty

Identifies the PdfViewerControl.ShowRightSideDefaultSettingsBarItems dependency property.

ShowSaveDocumentButtonProperty

Identifies the PdfViewerControl.ShowSaveDocumentButton dependency property.

ThumbnailHeightProperty

Identifies the PdfViewerControl.ThumbnailHeight dependency property.

ViewerErrorProperty

Identifies the PdfViewerControl.ViewerError dependency property.

ZoomModeProperty

Identifies the PdfViewerControl.ZoomMode dependency property.

Properties

Name Description
ActualIsFindTextPanelVisible

Returns whether the Search Panel is currently displayed. This is a dependency property.

ActualIsLoading

Gets whether a document is currently loading. This is a dependency property.

ActualIsPageBarVisible

Returns whether the Page Bar is currently displayed. This is a dependency property.

ActualIsSettingsBarVisible

Returns whether the Settings Bar is currently displayed. This is a dependency property.

ActualIsZoomBarVisible

Returns whether the Zoom Bar is currently displayed. This is a dependency property.

ActualOverlaySettings

Returns an object that stores actual overlay settings. This is a dependency property.

ClearFindResultsCommand

Clears all search results and highlight states found in the document.

CloseDocumentCommand

Closes the current document.

CloseFindPanelAndClearFindResultsCommand

Clears all search results and highlight states found in the document and closes the Search Panel.

ContainerActualHeight
ContainerActualWidth
ContentMargin

Gets or sets the outer indents for the PDF document. This is a dependency property.

CornerRadius

Gets or sets a value that represents the degree to which the corners of a PdfViewerControl are rounded. This is a dependency property.

CurrentPageIndex

Gets or sets the current page index. This is a dependency property.

CurrentPageNumber

Gets or sets the current page number. This is a dependency property.

CurrentZoomFactor

Gets or sets the current zoom level of a PDF Viewer Control.

DefaultZoomFactor

Gets or sets the default zoom factor. This is a dependency property.

Document

Gets the current PDF document. This is a dependency property.

DocumentPrintingQuality

Gets or sets the resolution scaling factor applied to the document when printing. This is a dependency property.

DocumentSource

Gets or sets the PDF document source. This is a dependency property.

DocumentUri

Gets or sets a URI that defines the location of a PDF file. This is a dependency property.

FindNextTextCommand

Highlights and scrolls to the next occurrence of the search criteria in a document.

FindPreviousTextCommand

Highlights and scrolls to the previous occurrence of the search criteria in a document.

FindTextCommand

Performs a search, scrolling to and highlighting the text that matches the search criteria.

FitSizeCommand

Sets the document zoom factor according to the command parameter.

IsDataLoading

Gets or sets whether the PDF Viewer displays a data loading splash screen. This is a dependency property.

IsFindTextPanelVisible

Gets or sets whether the Search Panel panel is enabled. This is a dependency property.

IsPageBarVisible

Gets or sets whether to enable the Page Bar. This is a dependency property.

IsSettingsBarVisible

Gets or sets whether to enable the Settings Bar. This is a dependency property.

IsZoomBarVisible

Gets or sets whether to enable the Zoom Bar. This is a dependency property.

IsZoomedOutView

Gets whether the PdfViewerControl displays page thumbnails.

LeftSideSettingsBarItemsSource

Gets or sets an object that provides information to generate and initialize items on the left side of the Settings Bar for the current PdfViewerControl. This is a dependency property.

LoadDocumentCommand

Loads a document from the source passed via the command parameter.

MaxZoomFactor

Gets or sets the maximum permitted run-time value of the PdfViewerControl.CurrentZoomFactor property.

NavigateToOutlineCommand
NextPageCommand

Scrolls to the next page.

OpenAttachmentCommand

Returns a command that opens an attachment in the Attachments panel using the application associated with the attachment file type.

OpenFileCommand

Invokes the file picker that allows the end-user to choose a document file to open.

OverlaySettings

Gets or sets the object that stores overlay settings. This is a dependency property.

OverlaySettingsTemplate
PageCount

Gets the total number of pages in the current document. This is a dependency property.

PageMargin

Gets or sets the inner indents for the PDF document. This is a dependency property.

PageSpacing

Gets or sets the spacing between document pages. This is a dependency property.

PdfDocumentLoadingPolicy

Specifies how PDF documents are loaded and processed for additional features such as text search, bookmarks, attachments, etc. This is a dependency property.

PdfViewMode

Gets or sets whether the PDF Viewer displays document pages one by one in a continuous vertical column or only the current document page. This is a dependency property.

PreviousPageCommand

Scrolls to the previous page.

PrintDocumentCommand

Prints the document.

PrintDocumentSource

Gets or sets the source for the print document. This is a dependency property.

RightSideSettingsBarItemsSource

Gets or sets an object that provides information to generate and initialize items on the right side of the Settings Bar for the current PdfViewerControl. This is a dependency property.

SaveAsCommand

Invokes the file save picker that allows the end-user to save the document.

SaveAttachmentCommand

Returns a command that saves an attachment locally.

SetPageNumberCommand

Goes to a specific page.

SetViewModeCommand

Sets the view mode.

SetZoomFactorCommand

Sets the current zoom level.

SetZoomModeCommand

Sets the current zoom mode.

SettingsBarFlyoutItemTemplateSelector

Gets or sets an object that chooses a template used to visualize objects stored as elements in the PdfViewerControl.LeftSideSettingsBarItemsSource and PdfViewerControl.RightSideSettingsBarItemsSource collections. This is a dependency property.

ShowBookmarksButton

Gets or sets whether to show the Bookmarks button within the Settings Bar. This is a dependency property.

ShowFindPanelCommand

Shows the Search Panel.

ShowLeftSideDefaultSettingsBarItems

Gets or sets whether to show items displayed on the left side of the Settings Bar. This is a dependency property.

ShowOpenDocumentButton

Gets or sets whether to show the Open button within the Settings Bar. This is a dependency property.

ShowPrintDocumentButton

Gets or sets whether to show the Print button within the Settings Bar. This is a dependency property.

ShowRightSideDefaultSettingsBarItems

Gets or sets whether to show items displayed on the right side of the Settings Bar. This is a dependency property.

ShowSaveDocumentButton

Gets or sets whether to show the Save button within the Settings Bar. This is a dependency property.

ThumbnailHeight

Gets or sets the height of page thumbnails.

ThumbnailSpacing

Gets or sets the spacing around a page thumbnail.

ToggleOverlayCommand

Toggles the visibility of the specified overlay.

ViewerError

Gets or sets the error message that is shown when a document fails to open. This is a dependency property.

ZoomCommand

Sets the document zoom factor according to the command parameter.

ZoomMode

Gets or sets the zoom mode that is applied to a PDF document. This is a dependency property.

Methods

Name Description
ClientToDocument(Point)

Converts the PDF Viewer's viewport coordinates of a screen point into document coordinates.

CloseDocument()

Closes the current document.

GetPage(Int32, Boolean)

Gets a document page with the specified index.

GetSelectionContent()
LoadState(PageStateStorage)
SaveState(PageStateStorage)

Events

Name Description
DocumentLoaded

Occurs when a PdfViewerControl control loads a PDF document.

DocumentLoadingFailed

Occurs when a PdfViewerControl control fails to load a PDF document.

FileAttachmentOpening

Occurs when an attachment is opening in the Attachments panel and allows you to manage the attachment opening behavior.

ReferencedDocumentOpening

Occurs when opening an embedded or external document by clicking its corresponding link in a PDF document.

SelectionCopying
UriOpening

Occurs after clicking a hyperlink addressing an external URI (universal resource identifier).