如何换行或XAML新行 - Windows Phone的超链接按钮 [英] How to Line Break or new line in XAML - Windows Phone hyperlink button
本文介绍了如何换行或XAML新行 - Windows Phone的超链接按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有时间难以匹配XAML设置特殊字符。我只在以下方面:
I am having hard time to match Special characters set in XAML. I only on the following:
要重新present在XAML超链接按钮,断行:
To represent a LineBreak in XAML hyperlink button:
使用:> LINEBREAK<
use : > lineBreak <
不过,我用什么来重新present一个新行或断行在XAML中的超链接按钮??
But What do I use to represent a New Line or LineBreak In XAML hyperlink button??
例如:我想这一条线MAG:这是行之一。这是二行
Example : I want this one line mag : This is line one. This is line two
这个:
这是一行。这是2号线。
This is line one. This is line two.
看来这\ r \ n不工作。这是一行\ r \ñ
it seems this \r\n is not working. This is line one \r\n
推荐答案
您已经有了选择。例如;
You've got options. For example;
<HyperlinkButton Content="Line One Line Two"/>
或
<HyperlinkButton>
<HyperlinkButton.Content>
<TextBlock>
<Run Text="Line 1"/><LineBreak/><Run Text="Line 2"/>
</TextBlock>
</HyperlinkButton.Content>
</HyperlinkButton>
希望这有助于。
Hope this helps.
这篇关于如何换行或XAML新行 - Windows Phone的超链接按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文