[UWP]超链接对齐问题 [英] [UWP] Hyperlink Alignment Trouble
本文介绍了[UWP]超链接对齐问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有这个代码..
<StackPanel Orientation="Horizontal" Margin="0,0,0,20">
<TextBlock Style="{StaticResource ExpStyle}" x:Uid="Privacy4" Text=""></TextBlock>
<TextBlock Style="{StaticResource ExpStyle}">
<Hyperlink NavigateUri="https://support.hockeyapp.net/kb/app-management-2/what-data-is-collected-with-the-hockeysdks-2">HockeyApp Privacy Statement</Hyperlink>
</TextBlock>
但它会像这样渲染..
But it renders like this..
任何人都可以了解为何会出现这种情况并提供解决方案吗?
Can anyone shed some light as to why this happens and offer a solution ?
推荐答案
您好吗?theresonlyonefinmaf,
Hi theresonlyonefinmaf,
您要连接文档文本吗?没有太多空格的超链接文本?如果是这样,我根据你的上面的xaml代码无法在我身边重现它,但是如果我使用下面的xaml代码,它可以很好地工作。
Do you want to connect the document text and hyperlink text without much spaces? If that, I can not reproduce it in my side according to your above xaml code, but if I use the xaml code below, it can work well.
<TextBlock>you can read more about this in
<Hyperlink NavigateUri="https://support.hockeyapp.net/kb/app-management-2/what-data-is-collected-with-the-hockeysdks-2">HockeyApp Privacy Statement</Hyperlink>
</TextBlock>
此外,如果不是您想要的,您能告诉我有关您想要实施的效果的更多信息并帮助我重现吗?
Besides, if it is not you want, could you tell me more information about what effect do you want to implement and help me to reproduce it?
致以最诚挚的问候,
Breeze
这篇关于[UWP]超链接对齐问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文