Dela via


WindowTab Class

Definition

Represents information about how a tab in an application should be displayed by the system.

public ref class WindowTab sealed
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.UI.Shell.WindowTabManagerContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.UI.Shell.WindowTabManagerContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class WindowTab final
[Windows.Foundation.Metadata.Activatable(65536, "Windows.UI.Shell.WindowTabManagerContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.UI.Shell.WindowTabManagerContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class WindowTab
function WindowTab()
Public NotInheritable Class WindowTab
Inheritance
Object Platform::Object IInspectable WindowTab
Attributes

Windows requirements

Device family
Windows Desktop Extension SDK (introduced in 10.0.23504.0)
API contract
Windows.UI.Shell.WindowTabManagerContract (introduced in v1.0)

Remarks

Important

This API is for Win32 desktop apps only. UWP and other app types are not supported.

Constructors

WindowTab()

Initializes a new instance of the WindowTab class.

Properties

Group

Gets or sets the group of tabs that this tab is associated with, if any.

Icon

Gets or sets the icon that the system displays for the tab.

Tag

Gets or sets an arbitrary object value that can be used to store custom information about this object.

Title

Gets or sets the text that the system displays as the title for the tab.

TreatAsSecondaryTileId

Gets or sets a string that identifies a SecondaryTile used by your app. Setting this property indicates that the tab should be treated as if opened by the secondary tile.

Methods

ReportThumbnailAvailable()

Notifies the system that a thumbnail image of the app tab is available to be shown.

Applies to