C# Class SnapDotNet.Apps.Notifications.BadgeContent.BadgeNumericNotificationContent

Notification content object to display a number on a tile's badge.
Inheritance: IBadgeNotificationContent
Mostra file Open project: 0xdeafcafe/SnapDotNet

Public Methods

Method Description
BadgeNumericNotificationContent ( ) : Windows.Data.Xml.Dom

Default constructor to create a numeric badge content object.

BadgeNumericNotificationContent ( uint number ) : Windows.Data.Xml.Dom

Constructor to create a numeric badge content object with a number.

CreateNotification ( ) : BadgeNotification

Creates a WinRT BadgeNotification object based on the content.

GetContent ( ) : string

Retrieves the notification Xml content as a string.

GetXml ( ) : XmlDocument

Retrieves the notification Xml content as a WinRT Xml document.

ToString ( ) : string

Retrieves the notification Xml content as a string.

Method Details

BadgeNumericNotificationContent() public method

Default constructor to create a numeric badge content object.
public BadgeNumericNotificationContent ( ) : Windows.Data.Xml.Dom
return Windows.Data.Xml.Dom

BadgeNumericNotificationContent() public method

Constructor to create a numeric badge content object with a number.
public BadgeNumericNotificationContent ( uint number ) : Windows.Data.Xml.Dom
number uint /// The number that will appear on the badge. If the number is 0, the badge /// will be removed. The largest value that will appear on the badge is 99. /// Numbers greater than 99 are allowed, but will be displayed as "99+". ///
return Windows.Data.Xml.Dom

CreateNotification() public method

Creates a WinRT BadgeNotification object based on the content.
public CreateNotification ( ) : BadgeNotification
return Windows.UI.Notifications.BadgeNotification

GetContent() public method

Retrieves the notification Xml content as a string.
public GetContent ( ) : string
return string

GetXml() public method

Retrieves the notification Xml content as a WinRT Xml document.
public GetXml ( ) : XmlDocument
return Windows.Data.Xml.Dom.XmlDocument

ToString() public method

Retrieves the notification Xml content as a string.
public ToString ( ) : string
return string