计数未读Windows电话中未接电话和未接短信的数量 [英] Count unreaded Number of missed call and message in Windows phone
本文介绍了计数未读Windows电话中未接电话和未接短信的数量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在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
注意:如何使用徽章发送和接收吐司通知
Note: how to send and receive toast notification with badge
推荐答案
我找到了解决方法...
I got the solution...
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电话中未接电话和未接短信的数量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文