I am creating a Windows 10 application. I need to display badges in live tile. I installed NotificationsExtensions.Win10 Nuget package.I use the following code.
public static void UpdateTileBadgeNumberUsingNotificationExtensions()
{
BadgeNumericNotificationContent badgeContent = new BadgeNumericNotificationContent(2);
BadgeUpdateManager.CreateBadgeUpdaterForApplication().Update(badgeContent.CreateNotification());
}
Here CreateNotification method is not available on badgeContent.How can I implement badge count using NotificationsExtensions.Win10 Nuget package.
Please update your code as follows:
After you have created a new
BadgeNumericNotificationContentinstance, you just got a content. You need to callGetXml()from this content and set the xml document to aBadgeNotificationinstance. Then you can update the badge by theBadgeNotification.