多行文字的UWP显示磁贴。

问题描述 投票:0回答:1

我正在通过XML创建瓷砖,它包含了背景图片和文本,我希望如果要显示的文本大小大于一行(我想如果文本超过33个字符的瓷砖宽),它将自动返回一行,而不显示三个点。我希望如果要显示的文本大小大于一行(我想如果文本超过33个字符的Tile Wide),它将自动返回到该行,而不是在最后显示三个小点,这是xml.NET文件。

<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.

c# windows tiles
1个回答
0
投票

我发现解决方案:我们必须添加hint-wrap='true'。

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

© www.soinside.com 2019 - 2024. All rights reserved.