private static void SetTileBadge(int value)
        {
            // update live tile badge
            var _Badge = Windows.UI.Notifications.BadgeUpdateManager
                         .GetTemplateContent(Windows.UI.Notifications.BadgeTemplateType.BadgeNumber);

            (_Badge.SelectSingleNode("/badge") as Windows.Data.Xml.Dom.XmlElement)
            .SetAttribute("value", value.ToString());
            var badge = new Windows.UI.Notifications.BadgeNotification(_Badge);

            Windows.UI.Notifications.BadgeUpdateManager.CreateBadgeUpdaterForApplication().Update(badge);
        }
Пример #2
0
 private BadgeNotification(Windows.UI.Notifications.BadgeNotification notification)
 {
     _notification = notification;
 }
Пример #3
0
 internal BadgeNotification(Windows.UI.Notifications.BadgeNotification notification)
 {
     _notification = notification;
 }