私はWindows 10アプリケーションを作成しています。ライブタイルにバッジを表示する必要があります。 NotificationsExtensions.Win10 Nugetパッケージをインストールしました。次のコードを使用します。ここでNotificationsExtensions.Win10パッケージを使用してWindows UAPのライブタイルにバッジを表示する方法は?
public static void UpdateTileBadgeNumberUsingNotificationExtensions()
{
BadgeNumericNotificationContent badgeContent = new BadgeNumericNotificationContent(2);
BadgeUpdateManager.CreateBadgeUpdaterForApplication().Update(badgeContent.CreateNotification());
}
CreateNotification方法は、私はNotificationsExtensions.Win10 Nugetパッケージを使用してバッジ数を実装することができbadgeContent.Howでは使用できません。
以下のコードはこの例外を示しています:値が予想される範囲内にない。 – subminer