本文介绍了统计Windows phone中的未读电话和未读信息数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在windows phone 8应用程序中显示未读消息和来电的标志?

How to display badge of unread message and call in windows phone 8 application?

当我打开应用程序时,我希望在我的应用程序图标中显示通知计数,它会像呼叫和消息应用程序一样删除.

I want display notification count in my application icon when I open application at that time it will remove like call and message application.

我知道磁贴通知,但我不知道如何在打开应用程序时删除徽章

I know the tile notification but i don't know how remove badge when I open application

注意:如何使用徽章发送和接收 Toast 通知

Note: how to send and receive toast notification with badge

推荐答案

我得到了解决方案...

I got the solution...

在 Windows 手机中务实地处理磁贴.

ShellTile tile = ShellTile.ActiveTiles.First();
            if (null != tile)
            {
                // create a new data for tile
                StandardTileData data = new StandardTileData();
                 tile foreground data
                data.Title = "";
                data.BackgroundImage = new Uri("/Assets/Tiles/IconicTileMediumLarge.png", UriKind.Relative);
                data.Count = 0;
                 to make tile flip add data to background also
                data.BackTitle = "Secret text here";
                data.BackBackgroundImage = new Uri("/Images/Green.jpg", UriKind.Relative);
                data.BackContent = "Back Content Text here...";
                 update tile
                tile.Update(data);

这篇关于统计Windows phone中的未读电话和未读信息数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-03 18:39