NavigateUri Property
Collapse the table of content
Expand the table of content

HyperlinkButton.NavigateUri Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the URI to navigate to when the HyperlinkButton is tapped.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

<TypeConverterAttribute(GetType(UriTypeConverter))> _
Public Property NavigateUri As Uri
<HyperlinkButton NavigateUri="uriString"/>

Property Value

Type: System.Uri
The URI to navigate to when the HyperlinkButton is tapped.

Dependency property identifier field: NavigateUriProperty

The specified URI must be an absolute URI or an application-relative URI.

If the URI is set to an external Web page, you must provide a value TargetName property. It does not matter what value you use for this property, but if TargetName is not set and an external URI is specified, an exception will be thrown. If the URI is set to content within the same application, the URI must be a relative URI that begins with “/” or contains “;component/” and you must not set the TargetName property.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2018 Microsoft