This topic has not yet been rated - Rate this topic

Hyperlink.TargetName Property

April 12, 2014

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)
XMLNS for XAML: Not mapped to an xmlns.
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.

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).

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.