Hyperlink extension


This docs page is outdated, please refer to the new one for the HyperlinkExtensions type.

The Hyperlink extension allows for a Hyperlink element to invoke the execute method on a bound ICommand instance when clicked.


<!-- Use Hyperlink in a wrapped TextBlock with text either side and ensure it executes a command when
     clicked passing the current data context as the command parameter. -->
        <Run>Some leading text with a</Run>
            extensions:Hyperlink.Command="{Binding HyperlinkClicked}"
        <Run>in the middle.</Run>

Requirements (Windows 10 Device Family)

Device family Universal, 10.0.14393.0 or higher
Namespace Microsoft.Toolkit.Uwp.Extensions