[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Collapse]PDF Viewer
   [Expand]Getting Started
     Navigation Pane
   [Expand]Access and Edit Document Content
  [Expand]TreeMap Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation


This document introduces hyperlinks and explains how to customize hyperlink opening behavior.

A hyperlink is a reference to data that you can directly follow by clicking a document page. Hyperlinks can point to a page, an external document or to URI (uniform resource identifier).

To navigate to a specific location within a document, click a link that refers to that location.

If you click a hyperlink addressing an external URI, the PdfViewerControl.UriOpening event is handled.

The PdfViewerControl.UriOpening event allows you to customize the URI opening behavior. If you set the e.Handled property to false (the default value is true) and click a hyperlink, this invokes a Security Warning message box.

The Security Warning message box warns you that the PDF Viewer will use an external resource to open the URI.

Click Yes to open the URI in the PDF Viewer, otherwise click No. You can prevent URI opening without using the message box (e.Handled should be set to true) by setting the UriOpeningEventArgs.Cancel property to true.

When you click a link in a PDF document to open an embedded or external document, the PdfViewerControl.ReferencedDocumentOpening event is raised. You can obtain the document source using the ReferencedDocumentOpeningEventArgs.DocumentSource property and get information about whether or not the referenced document was opened in an external application using the ReferencedDocumentOpeningEventArgs.OpenInNewWindow property.

Is this topic helpful?​​​​​​​