Hyperlink.Command Property

July 28, 2014

Gets or sets a command to associate with the Hyperlink.

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

public ICommand Command { get; set; }
<Hyperlink Command="commandReference"/>

XAML Values

commandReference

A reference to an ICommand implementation that describes the command logic. Typically this is done through a {Binding} reference to a data source, when using view-view model designs.

Property Value

Type: System.Windows.Input.ICommand
A command to associate with the Hyperlink. The default is null.

Dependency property identifier field: CommandProperty

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2014 Microsoft