HyperlinkButton.TargetName Property

May 11, 2014

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:
© 2014 Microsoft