Displaying a badge in the taskbar
If your application is packaged with MSIX, you can support it with another type of notification, called badge notifications. These notifications are helpful when the user decides to pin your application on the Windows taskbar: the badge, in fact, is displayed in an overlay of your application's icon. Badge notifications support two kinds of content: a number (for example, you want to quickly display the number of unread messages) or a symbol (for example, you want to notify users that the application needs their attention).
To use these type of notifications, other than the CommunityToolkit.WinUI.Notifications
namespace, you must also add the Windows.UI.Notifications
class.
Let's start with an example of creating badge notifications with a number:
private void OnSendBadgeNumberNotification () { BadgeNumericContent numeric = new BadgeNumericContent(15); ...