Compartir a través de


Hyperlink.TargetName Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the name of a target window or frame for the Hyperlink.

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

Syntax

'Declaration
Public Property TargetName As String
public string TargetName { get; set; }
<Hyperlink TargetName="string"/>

Property Value

Type: System.String
A string that specifies the name of a target window or frame for the Hyperlink.

Remarks

Dependency property identifier field: TargetNameProperty

The following table lists some target names and describes the results when they are used for a Hyperlink.TargetName value.

Target

Description

_blank, _media, or _search

Loads the linked document into a new blank window.

_parent, _self, _top, or ""

Loads the page into the window in which the link was clicked (the active window).

Version Information

Silverlight

Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

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