TargetName Property
Collapse the table of content
Expand the table of content

HyperlinkButton.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 the target for the HyperlinkButton.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

public string TargetName { get; set; }
<HyperlinkButton TargetName="string"/>

Property Value

Type: System.String
The name of the target for the HyperlinkButton.

Dependency property identifier field: TargetNameProperty

If the NavigateUriProperty property of a HyperlinkButton 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:
© 2016 Microsoft