Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Warning
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.
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
extensions:Hyperlink.Command="{Binding HyperlinkClicked}"
extensions:Hyperlink.CommandParameter="{Binding}">hyperlink</Hyperlink>
<Run>in the middle.</Run>
</TextBlock>
Requirements (Windows 10 Device Family)
Device family | Universal, 10.0.14393.0 or higher |
---|---|
Namespace | Microsoft.Toolkit.Uwp.Extensions |
API
- Hyperlink source code Hyperlink source code