UWP 显示磁贴,多行显示文本



我正在通过XML创建包含背景图像和文本的磁贴。我希望如果要显示的文本大小大于一行(我认为如果 Tile Wide 的文本超过 33 个字符(,它将自动返回到该行,而不会在末尾显示三个点,这是 xml:

<visual version="3">
<binding template="TileWide">
<image src="http://img.jpg" placement="background"/>
<text>texte long qui s'affiche sur plus d'une ligne</text>
</binding>
</visual>
</tile>```
I tried with "HintMaxLines=1" but still the same problem.

我找到了解决方案: 我们必须添加 hint-wrap='true'

<text hint-wrap='true'>message a afficher</text>

最新更新