[UWP]无法通过鼠标选择超链接的一部分 [英] [UWP] Can't select a part of hyperlink by mouse
本文介绍了[UWP]无法通过鼠标选择超链接的一部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好!
$
我正在开发一个UWP应用程序,今天我遇到了一个问题。
在这个app用户中必须能够选择链接的一部分。
$
例如,我无法选择"microsoft.com"。鼠标链接的一部分:
此链接在TextBlock中表示为超链接,其中启用了IsTextSelectionEnabled属性。
Hello!
I'm developing a UWP app and today I've run into a problem.
In this app user have to be able to select a part of the link.
For example, I can't select "microsoft.com" part of the link by mouse:
This link is represented as Hyperlink in TextBlock, where IsTextSelectionEnabled property is enabled.
<TextBlock FontSize="25"
IsTextSelectionEnabled="True">
<TextBlock.Inlines>
<Hyperlink NavigateUri="https://msdn.microsoft.com/en-us/library">
<Run Text="https://msdn.microsoft.com/en-us/library" />
</Hyperlink>
</TextBlock.Inlines>
</TextBlock>
与RichTextBlock相同的问题。我只能通过点击超链接进行导航。
$
在这里你可以找到一个 样品。
请帮帮我,这非常重要!
推荐答案
这篇关于[UWP]无法通过鼠标选择超链接的一部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文