我正在创建一个 Windows 10 应用程序。我需要在动态磁贴中显示徽章。我安装了 NotificationsExtensions.Win10 Nuget 包。我使用以下代码。
public static void UpdateTileBadgeNumberUsingNotificationExtensions()
{
BadgeNumericNotificationContent badgeContent = new BadgeNumericNotificationContent(2);
BadgeUpdateManager.CreateBadgeUpdaterForApplication().Update(badgeContent.CreateNotification());
}
这里 CreateNotification 方法在徽章内容上不可用。如何使用 NotificationsExtensions.Win10 Nuget 包实现徽章计数。