PasswordBox.HeaderTemplate Property

Definition

Gets or sets the DataTemplate used to display the content of the control's header.

Equivalent WinUI property: Microsoft.UI.Xaml.Controls.PasswordBox.HeaderTemplate.

DataTemplate HeaderTemplate();

void HeaderTemplate(DataTemplate value);
public DataTemplate HeaderTemplate { get; set; }
var dataTemplate = passwordBox.headerTemplate;
passwordBox.headerTemplate = dataTemplate;
Public Property HeaderTemplate As DataTemplate
<PasswordBox>
  <PasswordBox.HeaderTemplate>
    singleDataTemplate
  </PasswordBox.HeaderTemplate>
</PasswordBox>
- or -
<PasswordBox HeaderTemplate="resourceReferenceToDataTemplate"/>

Property Value

DataTemplate

The template that specifies the visualization of the header object. The default is null.

Applies to

See also