How come whenever I override the default template for a DataGridColumnHeader it can no longer be resized by the user even though CanUserResizeColumns is set to true for the datagrid? Is there something that I need to add to the template to restore this functionality?
Here's my template xaml:
<Style x:Key="ColumnHeaderStyle" TargetType="{x:Type DataGridColumnHeader}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="DataGridColumnHeader">
<Border BorderThickness="1" Margin="-1,0,0,0" Background="#f9f9f9" BorderBrush="Gray">
<Grid>
<TextBlock Margin="2" Text="{TemplateBinding Content}" VerticalAlignment="Center"
HorizontalAlignment="Left" TextWrapping="Wrap"/>
</Grid>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>