ItemsPresenter.Header Property


Gets or sets the content for the items header.

 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 -

Property Value



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


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

Windows 8.1 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.

Applies to