我想在辅助磁贴上显示大文本(大约 20 个字符),但在移动屏幕和桌面上,开始菜单文本看起来不同(移动文本显示没有剪辑)。有什么办法可以让文字在手机屏幕上的平铺中换行?
这是文本在桌面上的外观:
这是文本在移动设备上的外观:
代码示例:
var secondaryTile = new SecondaryTile(Id.ToString(),
"Large large large large large text","secondary_tile_id=" + Id,
uri150X150Logo, TileSize.Square150x150)
{
VisualElements =
{
Square310x310Logo = uri310X310Logo,
Square44x44Logo = uri44X44Logo,
Square71x71Logo = uri71X71Logo,
Wide310x150Logo = uri310X150Logo,
Square150x150Logo = uri150X150Logo,
ForegroundText = ForegroundText.Dark,
ShowNameOnSquare150x150Logo = true,
ShowNameOnSquare310x310Logo = true,
ShowNameOnWide310x150Logo = true,
BackgroundColor = Colors.White
},
RoamingEnabled = false,
};
await secondaryTile.RequestCreateAsync();