HyperlinkExtensions

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

Example

    // 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.
    <TextBlock>
        <Run>Some leading text with a</Run>
         <Hyperlink xaml:HyperlinkExtensions.Command="{Binding HyperlinkClicked}"
                    xaml:HyperlinkExtensions.CommandParameter="{Binding}">hyperlink</Hyperlink>
        <Run>in the middle.</Run>
    </TextBlock>

Requirements (Windows 10 Device Family)

Device family Universal, 10.0.10586.0 or higher
Namespace Microsoft.Toolkit.Uwp

API