DataTemplate for HeaderControl of WPF DataGrid not identified

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
lg2de
Posts: 1
Joined: Wed Dec 16, 2020 5:55 pm

DataTemplate for HeaderControl of WPF DataGrid not identified

Post by lg2de » Wed Dec 16, 2020 6:06 pm

Currently it is not possible to access controls defined in a DataTemplate within WPF DataGrid HeaderControl.
<DataGrid>
  <DataGrid.Columns>
    <DataGridCheckBoxColumn>
      <DataGridCheckBoxColumn.HeaderTemplate>
        <DataTemplate> <CheckBox /> </DataTemplate>
      </DataGridCheckBoxColumn.HeaderTemplate>
    </DataGridCheckBoxColumn>
...
</DataGrid>
I found similar issue like
viewtopic.php?f=15&t=5875&p=24643&hilit ... ate#p24643

Here WPF standard controls are used (dotnetcore 3.1), not DevExpress neither Telerik.
The behavior is unchanged even adding x:Name or AutomationProperties.AutomationId.

I found documentation how to identify controls in data template:
docs.microsoft.com/en-us/dotnet/desktop/wpf/data/how-to-find-datatemplate-generated-elements

Can you help to identify this control?