HyperlinkButton.NavigateUri Property

July 28, 2014

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(typeof(UriTypeConverter))]
public Uri NavigateUri { get; set; }
<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

Show:
© 2014 Microsoft