Aracılığıyla paylaş


ItemsPresenter.Header Property

Definition

Gets or sets the content for the items header.

public:
 property Platform::Object ^ Header { Platform::Object ^ get(); void set(Platform::Object ^ value); };
IInspectable Header();

void Header(IInspectable value);
public object Header { get; set; }
var object = itemsPresenter.header;
itemsPresenter.header = object;
Public Property Header As Object
<ItemsPresenter Header="headerString"/>
- or -
<ItemsPresenter>
  <ItemsPresenter.Header>headerObject</ItemsPresenter.Header>
</ItemsPresenter>

Property Value

Object

Platform::Object

IInspectable

The content of the items header. The default value is null.

Remarks

You can set a data template for the Header by using the HeaderTemplate property.

Notes for previous versions

Windows 8.x Header alignment is handled differently in apps compiled for Windows 8 than in apps compiled for Windows 8.1.

  • In an app compiled for Windows 8, the header is always left-aligned when the orientation of the items is Horizontal, or top-aligned when the orientation is Vertical. VerticalAlignment and HorizontalAlignment values that you set are ignored.
  • In an app compiled for Windows 8.1, you can specify the header alignment. VerticalAlignment and HorizontalAlignment values that you set are not ignored.

Applies to