.NET Framework Class Library for Silverlight
HyperlinkButton..::.NavigateUri Property

[Note: This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

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

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)
Syntax

Visual Basic (Declaration)
<TypeConverterAttribute(GetType(UriTypeConverter))> _
Public Property NavigateUri As Uri
    Get
    Set
Visual Basic (Usage)
Dim instance As HyperlinkButton
Dim value As Uri

value = instance.NavigateUri

instance.NavigateUri = value
C#
[TypeConverterAttribute(typeof(UriTypeConverter))]
public Uri NavigateUri { get; set; }
XAML Attribute Usage
<object NavigateUri="uriString"/>

Property Value

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

Dependency property identifier field: NavigateUriProperty

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

When you use a relative URI, the Silverlight-based application must discover its application root at run time, and the application root can vary between development and production environments. The application root is required for the application to build an absolute URI from a relative URI. For more information about relative and absolute URIs, see Uri.

NoteNote:

If EnableNavigationon the Silverlight object is set to none, the user can only navigate to a relative URI in the current application. Attempts to navigate to an external URL will cause a SecurityException.

Examples

The following code example demonstrates a HyperlinkButton.

XAML
<HyperlinkButton Content="Click here to learn about Silverlight"
    NavigateUri="http://www.silverlight.net" TargetName="_blank" Margin="10,60,0,0"/>
Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference

Other Resources

Page view tracker