ScheduledTileNotification ScheduledTileNotification ScheduledTileNotification ScheduledTileNotification ScheduledTileNotification Class


Defines the visual content and timing for a single, non-recurring scheduled update to a tile.

public : sealed class ScheduledTileNotification : IScheduledTileNotification
struct winrt::Windows::UI::Notifications::ScheduledTileNotification : IScheduledTileNotification
public sealed class ScheduledTileNotification : IScheduledTileNotification
Public NotInheritable Class ScheduledTileNotification Implements IScheduledTileNotification
var scheduledTileNotification = new scheduledTileNotification(content, deliveryTime);
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


The following example shows a tile scheduled to display in one hour.

var Notifications = Windows.UI.Notifications;
var currentTime = new Date();
var seconds = 60;
var dueTime = new Date(currentTime.getTime() + seconds * 60 * 1000);
var idNumber = Math.floor(Math.random() * 100000000);  // Generates a unique ID number for the notification.

var tileXml = Notifications.TileUpdateManager.getTemplateContent(Notifications.TileTemplateType.tileWide310x150Text09);

// Set up the wide tile text.
var tileTextAttributes = tileXml.getElementsByTagName("text");
tileTextAttributes[0].appendChild(tileXml.createTextNode("This is a scheduled notification"));
tileTextAttributes[1].appendChild(tileXml.createTextNode("Received: " + dueTime.toLocaleTimeString()));

// Set up the medium tile text.
var squareTileXml = Notifications.TileUpdateManager.getTemplateContent(Notifications.TileTemplateType.tileSquare150x150Text04);
var squareTileTextAttributes = squareTileXml.getElementsByTagName("text");
squareTileTextAttributes[0].appendChild(squareTileXml.createTextNode("This is a scheduled notification"));

// Include the medium tile in the notification.
var node = tileXml.importNode(squareTileXml.getElementsByTagName("binding").item(0), true);

// Create the notification object.
var futureTile = new Notifications.ScheduledTileNotification(tileXml, dueTime); = "Tile" + idNumber;

// Add to the schedule.


ScheduledTileNotification(XmlDocument, DateTime) ScheduledTileNotification(XmlDocument, DateTime) ScheduledTileNotification(XmlDocument, DateTime) ScheduledTileNotification(XmlDocument, DateTime) ScheduledTileNotification(XmlDocument, DateTime)

Creates and initializes a new instance of the ScheduledTileNotification object for use with a TileUpdater.


Content Content Content Content Content

Gets the XML description of the content of the scheduled tile update.

DeliveryTime DeliveryTime DeliveryTime DeliveryTime DeliveryTime

Gets the time at which the tile is scheduled to be updated.

ExpirationTime ExpirationTime ExpirationTime ExpirationTime ExpirationTime

Gets or sets the time after which the tile notification should no longer be shown. By default, a tile notification does not expire. It is a best practice to explicitly set an expiration time to avoid stale content.

Id Id Id Id Id

Gets or sets the unique ID that is used to identify the scheduled tile in the schedule.

Tag Tag Tag Tag Tag

Gets or sets a string that Windows can use to prevent duplicate notification content from appearing in the queue.

See Also