【发布时间】:2013-01-19 16:13:14
【问题描述】:
我希望 Nathan 的“带有 XAML 和 C# 的 Windows 8 应用程序”第 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 中完成同样的事情?
【问题讨论】:
标签: c# xml windows-phone-8 windows-store-apps badge