是否可以在Windows

是否可以在Windows

本文介绍了是否可以在Windows Store应用程序中将图块模板与辅助图块一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

标题就是整个问题:在Windows Store应用程序中是否可以将图块模板与辅助图块一起使用?辅助磁贴也可以动画吗?看起来答案是否定的,即使在Windows 8.1中也是如此,但也许我只是缺少了一些东西.这是平铺模板的链接:

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

这里是SecondaryTile类的链接:

Here is a link to the SecondaryTile class:

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

这很奇怪,因为在Windows 8中这似乎是一个明显的疏忽,并且他们在Windows 8.1中对辅助磁贴进行了一些改进.

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.

推荐答案

可以将实时磁贴内容(平铺更新)发送到辅助磁贴,就像将实时磁贴内容发送到主磁贴一样.创建TileUpdater(或使用Windows推送通知时,使用推送通知通道)时,需要指定辅助瓦片标识符.

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具有发送瓦片更新的快速启动这适用于主要和次要磁贴.

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

Windows 8和Windows 8.1均支持此行为.

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

这篇关于是否可以在Windows Store应用程序中将图块模板与辅助图块一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 22:32