NavigateUri Property

Hyperlink.NavigateUri Property

Gets or sets a URI to navigate to when the Hyperlink is activated. 

Namespace:  System.Windows.Documents
Assembly:  PresentationFramework (in PresentationFramework.dll)

public Uri NavigateUri { get; set; }
<object NavigateUri="Uri" .../>

Property Value

Type: System.Uri
The Uri to navigate to when the Hyperlink is activated. The default is null.

Hyperlink can navigate to the value of the NavigateUri property only if either the direct or indirect parent of a Hyperlink is a navigation host, including NavigationWindow, Frame, or any browser that can host XBAPs (which includes Internet Explorer 7, Microsoft Internet Explorer 6, and Firefox 2.0+). For more information, see the Navigation Hosts section in Navigation Overview.

Identifier field


Metadata properties set to true


To link to a particular inline element, specify the element name preceded by a pound symbol (#).

When a user hovers the mouse over a Hyperlink in an XBAP, the URI stored in the NavigateUri property is displayed in the status bar. Hyperlink navigates to this URI when the user clicks the Hyperlink. If the value of the NavigateUri property changes after the user clicks the Hyperlink and before the subsequent navigation request, Hyperlink ignores the new value of the NavigateUri property and navigates to the URI that was the value of the NavigateUri property when the user clicked the Hyperlink.


You are not restricted to only using a Hyperlink to do navigation. You can use the NavigateUri attached property as well, but only from the following: FixedPage, Path, Canvas, and Glyphs.

The following example shows how to use the NavigateUri attribute of a Hyperlink element.

  <Run>Text preceding the hyperlink.</Run>
    Link text.
  <Run Name="test">Text following the hyperlink.</Run>

The following example shows how to set the NavigateUri property programmatically.

Paragraph parx = new Paragraph();
Run run1 = new Run("Text preceeding the hyperlink.");
Run run2 = new Run("Text following the hyperlink.");
Run run3 = new Run("Link Text.");

Hyperlink hyperl = new Hyperlink(run3);
hyperl.NavigateUri = new Uri("");


.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

© 2015 Microsoft