C# 如何在WP 8.1中为Hyperlinkbutton添加下划线

C# 如何在WP 8.1中为Hyperlinkbutton添加下划线,c#,windows-phone-8.1,C#,Windows Phone 8.1,如何在windows phone 8.1中为超链接按钮的文本添加下划线: XAML标记: <HyperlinkButton Style="{StaticResource myHyperlink}" Content="Forgot Password?" /> 在默认控件中,我找不到控件的任何下划线,也找不到文本获取下划线的任何文本属性。使用下划线属性,如下所示 <HyperlinkButton NavigateUri="forgetpassword">

如何在windows phone 8.1中为超链接按钮的文本添加下划线:

XAML标记:

<HyperlinkButton Style="{StaticResource myHyperlink}" Content="Forgot Password?" />


在默认控件中,我找不到控件的任何下划线,也找不到文本获取下划线的任何文本属性。

使用下划线属性,如下所示

 <HyperlinkButton NavigateUri="forgetpassword">
        <TextBlock>
            <Underline>
            <Run>Forgot Password?</Run>
                </Underline>
        </TextBlock>
    </HyperlinkButton>

忘记密码了?