ItemsPresenter.Header Property
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.
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
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.
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.
- In an app compiled for Windows 8.1, you can specify the header alignment. VerticalAlignment and HorizontalAlignment values that you set are not ignored.