Skip to content

Commit

Permalink
Set ContentTemplate of DataGridColumnHeader's ContentPresenter to the…
Browse files Browse the repository at this point in the history
… column's HeaderTemplate (#312)

Use provided HeaderTemplate for DataGridColumnHeader's ContentPresenter
  • Loading branch information
klotztech committed May 28, 2022
1 parent a5dc1b4 commit 48167bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ModernWpf/Styles/DataGrid.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@

<ContentPresenter
Content="{TemplateBinding Content}"
ContentTemplate="{TemplateBinding ContentTemplate}"
HorizontalAlignment="Left"
VerticalAlignment="Center"
RecognizesAccessKey="True"
Expand Down Expand Up @@ -984,4 +985,4 @@
</Grid>
</ControlTemplate>

</ResourceDictionary>
</ResourceDictionary>

0 comments on commit 48167bf

Please sign in to comment.