Is it possible to use tile templates with secondary tiles in a Windows Store App?

百般思念 提交于 2019-12-11 07:50:03

问题


The title is the whole question: Is it possible to use tile templates with secondary tiles in a Windows Store App? Also can secondary tiles animate? It looks like the answer is no, even in Windows 8.1 but maybe I am just missing something. Here is a link to the Tile Template:

http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.notifications.tiletemplatetype.aspx

Here is a link to the SecondaryTile class:

http://msdn.microsoft.com/library/windows/apps/br242183

It's weird because this seemed like an obvious oversight in Window 8 and they revamped secondary tiles a little bit in Windows 8.1.


回答1:


Live tile content (tile updates) can be sent to secondary tiles in much the same way that live tile content is sent to primary tiles. The secondary tile identifier needs to be specified when creating the TileUpdater (or the push notification channel, if using Windows Push Notifications).

TileUpdateManager.CreateTileUpdaterForSecondaryTile(secondaryTileId)

MSDN has a quickstart on sending tile updates which applies to both primary and secondary tiles.

This behavior is supported in both Windows 8 and Windows 8.1.



来源:https://stackoverflow.com/questions/18455363/is-it-possible-to-use-tile-templates-with-secondary-tiles-in-a-windows-store-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!