3

I'm working on a new W10 UWP app, and ran into a small issue.

I'm generating tiles with a separate Tile service - it creates secondary tiles, and updates them when required (and also updates the primary tile).

However, for some reason, even though the Wide and Medium templates are used, the sizes the tile offers when right-clicked are just "Small", and "Medium".

I found no reference on how to enable Wide and Large tile options. Does anyone know?

4

1 回答 1

10

好的,所以解决方案很简单......

仅添加 Live Tile 模板是不够的,您必须通过将适当的图形 Uris 添加到 SecondaryTile 实例来手动指定大小。因此,如果您想要一个宽磁贴可用,请为

tile.VisualElements.Wide310x150Logo

等等,在调用之前

await tile.RequestCreateAsync()
于 2015-08-06T14:10:32.987 回答