从后台音频代理更新动态磁贴? [英] Updating live tiles from Background audio agent?

查看:25
本文介绍了从后台音频代理更新动态磁贴?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从后台音频代理更新动态磁贴?

Updating live tiles from Background audio agent?

我知道您可以使用 PeriodicTask 的 ShellTile 更新 Liva Tils.是否可以更新后台音频代理的实时磁贴?

I know that you can update Liva Tils with ShellTile of PeriodicTask. is it possible to update the live tiles of background audio agent?

例如,当曲目更改为实时磁贴上的标题曲目时,我想这样做.这可能吗?

I want to do, for example, when the track changed to the title track on the live tile. Is this possible?

只是不想做后台代理的一些应用:代理音频甚至定期后台代理.这么重的负载会不会影响电池寿命?

Just did not want to do would have been a few applications of background agents: agent audio and even periodic background agent. Would not this heavy load and impact on battery life?

更新:BackgroundAudioPlayer是这样试的:

Update: BackgroundAudioPlayer tried in this way:

ShellTile apptile = ShellTile.ActiveTiles.First();
            StandardTileData appTileData = new StandardTileData();
            appTileData.Title = "Title App";
            appTileData.Count = 5;
            appTileData.BackgroundImage = new Uri("/front.png", UriKind.RelativeOrAbsolute);
            apptile.Update(appTileData);

我收到一条错误消息 First() is not found

And I get an error message First() is not found

推荐答案

using System.Linq 添加到文件顶部.

add using System.Linq to the top of your file.

这篇关于从后台音频代理更新动态磁贴?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆