Hyperlink.TargetName Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets or sets the name of a target window or frame for the Hyperlink.
Assembly: System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.
<Hyperlink TargetName="string"/>
Property Value
Type: System.StringA string that specifies the name of a target window or frame for the Hyperlink.
Dependency property identifier field: TargetNameProperty
When Hyperlink is used on Windows Phone, to open the Web browser, you must specify a value for the TargetName property.
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 tapped (the active window). |