PivotItem PivotItem PivotItem PivotItem Class

Definition

Represents the container for an item in a Pivot control.

public : class PivotItem : ContentControl, IPivotItempublic class PivotItem : ContentControl, IPivotItemPublic Class PivotItem Inherits ContentControl Implements IPivotItem// This API is not available in Javascript.
<PivotItem .../>
Inheritance
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Inherited Members

Inherited properties

Inherited events

Inherited methods

Remarks

Control style and template

You can modify the default Style and ControlTemplate to give the control a unique appearance. For information about modifying a control's style and template, see Styling controls. The default style, template, and resources that define the look of the control are included in the generic.xaml file. For design purposes, generic.xaml is available in the (Program Files)\Windows Kits\10\DesignTime\CommonConfiguration\Neutral\UAP&lt;SDK version>\Generic folder from a Windows Software Development Kit (SDK) installation. Styles and resources from different versions of the SDK might have different values.

Starting in Windows 10, version 1607 (Windows Software Development Kit (SDK) version 10.0.14393.0), generic.xaml includes resources that you can use to modify the colors of a control in different visual states without modifying the control template. In apps that target this software development kit (SDK) or later, modifying these resources is preferred to setting properties such as Background and Foreground. For more info, see the Light-weight styling section of the Styling controls article.

This table shows the resources used by the PivotItem control.

Resource keyDescription
PivotItemBackgroundItem background color

Constructors

PivotItem() PivotItem() PivotItem() PivotItem()

Initializes a new instance of the PivotItem type.

public : PivotItem()public PivotItem()Public Sub New()// This API is not available in Javascript.

Properties

Header Header Header Header

Gets or sets the header for the PivotItem.

public : PlatForm::Object Header { get; set; }public object Header { get; set; }Public ReadWrite Property Header As object// This API is not available in Javascript.
<PivotItem Header="headerString"/>

Value
PlatForm::Object object object object

Returns Object.

HeaderProperty HeaderProperty HeaderProperty HeaderProperty

Identifies the Header dependency property.

public : static DependencyProperty HeaderProperty { get; }public static DependencyProperty HeaderProperty { get; }Public Static ReadOnly Property HeaderProperty As DependencyProperty// This API is not available in Javascript.
Value
DependencyProperty DependencyProperty DependencyProperty DependencyProperty

The identifier for the Header dependency property.

See Also