Edit

Share via


BadgeNumericContent Class

Definition

Notification content object to display a number on a Tile's badge.

public sealed class BadgeNumericContent : Microsoft.Toolkit.Uwp.Notifications.INotificationContent
type BadgeNumericContent = class
    interface INotificationContent
Public NotInheritable Class BadgeNumericContent
Implements INotificationContent
Inheritance
BadgeNumericContent
Implements

Constructors

BadgeNumericContent()

Initializes a new instance of the BadgeNumericContent class. Default constructor to create a numeric badge content object.

BadgeNumericContent(UInt32)

Initializes a new instance of the BadgeNumericContent class. Constructor to create a numeric badge content object with a number.

Properties

Number

Gets or sets the number that will appear on the badge. If the number is 0, the badge will be removed.

Methods

GetContent()

Retrieves the notification Xml content as a string.

GetXml()

Retrieves the notification Xml content as a WinRT Xml document.

ToString()

Retrieves the notification Xml content as a string.

Applies to