Count unreaded Number of missed call and message in Windows phone

落爺英雄遲暮 提交于 2019-12-04 05:51:05

问题


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


回答1:


I got the solution...

Handle tile pragmatically in windows phone.

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);


来源:https://stackoverflow.com/questions/18566310/count-unreaded-number-of-missed-call-and-message-in-windows-phone

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