-api-id | -api-type |
---|---|
P:Windows.UI.Xaml.Controls.TextBox.Header |
winrt property |
Gets or sets the content for the control's header.
<TextBox Header="headerString"/>
- or -
<TextBox>
<TextBox.Header>headerObject</TextBox.Header>
</TextBox>
- headerString
- headerStringA text string that serves as header content.
- headerObject
- headerObjectAn single object element that serves as header content. Use discretion when using objects as header content; not all objects are suitable for use within the limited presentation surface that appears for headers.
You can set a data template for the Header by using the HeaderTemplate property.