Inline Hyperlink does not work when IsTextSelectionEnabled="True"
See original GitHub issueDescribe the bug
When using a Hyperlink in a TextBlock, and IsTextSelectionEnabled=“True”, clicking the hyperlink does nothing. This is a regression in Windows App SDK 1.x.x. It works in Windows App SDK 0.8
Steps to reproduce the bug
- Use Windows App SDK 1.x.x
- Use this XAML:
<TextBlock IsTextSelectionEnabled="True" HorizontalAlignment="Left" VerticalAlignment="Top">
<TextBlock.Inlines>
<Hyperlink Click="OnHyperlinkClick">
<Hyperlink.Inlines>
<Run Text="Click Me!"/>
</Hyperlink.Inlines>
</Hyperlink>
</TextBlock.Inlines>
</TextBlock>
- Click the hyperlink (Click Me!)
The OnHyperlinkClick handler is never fired as long as text selection is enabled.
Expected behavior
It should be possible to click on a hyperlink in a TextBlock, even when text selection is enabled.
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.x.x
Windows app type
- UWP
- Win32
Device form factor
Desktop
Windows version
May 2021 Update (19043)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Hyperlinks not working in inline paragraph text
Hiya, I'm a newb so this is probably painfully obvious but my outbound hyperlinks aren't working. On the editor side, it couldn't be...
Read more >Inline Hyperlinks not working as expected - Inform 7
I'm using Inform 7 6L38, and Erik Temple's Inline Hyperlinks. I don't know whether it's because I'm tired and have missed part of...
Read more >Stop hyperlink inheriting div's width? - css
It's sort of a mix between the two. The clear attribute stops the inline floating and goes back to normal block behavior (new...
Read more >Hyperlinking a piece of text in Excel
I think Excel does not allow creating hyperlinks on only part of the text in a cell. The hyperlink can only be set...
Read more >Markdown link not being rendered as a hyperlink?
The problem was due to an invisible character in the end of the link URL. Here is the revision history of this answer: ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
🎉🎈😃 This issue has been resolved in Windows App SDK 1.2
Closing as per @wbokkers message and tweet confirming it was resolved.