Nathanの「Windows8Appswith XAML andC#」の549ページからこのコードを期待していました。
//string xmlString = @"<badge value='2'/>";
string xmlString = string.Format(@"<badge value={0}/>", 42);
XmlDocument document = new XmlDocument();
document.LoadXml(xmlString);
BadgeNotification notification = new BadgeNotification(document);
BadgeUpdateManager.CreateBadgeUpdaterForApplication().Update(notification);
... WP8でも機能しますが、私のWP8 ScheduledTaskAgent、つまりXmlDocument、BadgeNotification、およびBadgeUpdateManagerではクラスの多くが認識されません。
ScheduledTaskAgentからWP8で同じことをどのように達成できますか?