TileFlyoutNotification Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides the details of a tile flyout (mix view) notification. This includes the notification's XML content and, optionally, its expiration time. This class also provides a method by which you can retrieve the current flyout notification's XML content.
This class is part of the following general API usage pattern:
- Call TileFlyoutUpdateManager.GetTemplateContent to retrieve and fill in a blank tile flyout notification XML template
- Call the TileFlyoutNotification constructor to encapsulate the template content as a flyout notification
- Call one of the TileFlyoutUpdateManager methods to create a TileFlyoutUpdater
- Call TileFlyoutUpdater.Update to send the TileFlyoutNotification to the tile
public ref class TileFlyoutNotification sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.UI.Notifications.ITileFlyoutNotificationFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
class TileFlyoutNotification final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
/// [Windows.Foundation.Metadata.Activatable(Windows.UI.Notifications.ITileFlyoutNotificationFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class TileFlyoutNotification final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
/// [Windows.Foundation.Metadata.Activatable(Windows.UI.Notifications.ITileFlyoutNotificationFactory, 65536, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class TileFlyoutNotification final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.UI.Notifications.ITileFlyoutNotificationFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
public sealed class TileFlyoutNotification
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.UI.Notifications.ITileFlyoutNotificationFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class TileFlyoutNotification
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.UI.Notifications.ITileFlyoutNotificationFactory), 65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class TileFlyoutNotification
function TileFlyoutNotification(content)
Public NotInheritable Class TileFlyoutNotification
- Inheritance
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Constructors
TileFlyoutNotification(XmlDocument) |
Creates a TileFlyoutNotification object for use in a tile flyout (mix view) notification. This object provides the XML content of the notification— the sub-tiles to be displayed and the text and image elements used in each sub-tile. |
Properties
Content |
Gets the XML description of the current tile flyout (mix view) notification. This content can then be examined or manipulated as necessary. Note A tile flyout notification always includes the entire flyout. To update any part of the notification, you must resend the entire notification. For instance, to update the content of only one of the flyout's sub-tiles while leaving the rest of the notification unchanged, call this method to get the current XML payload, alter only the attributes of the specific subtile element, and resend the full payload in a new notification. |
ExpirationTime |
Gets or sets the time that the system will remove the tile flyout (mix view) notification. By default, a tile flyout notification does not expire. It is generally a best practice to explicitly set an expiration time to avoid stale content. |