With a grouped datasource, the HeaderTemplate is located under the GroupStyle.ContainerStyle, with the container consisting of two rows, one for the header and the other for the items.
This doesn't seem to be the case with the GridView.HeaderTemplate. The header shows on the left side of the items like this:
Header Text [Item 1]
Is there a way to move the header text above the items list instead? I would assume one has to change the GridView Template itself, which doesn't seem to be accessible.
Here's the XAML for the GridView. It's very straight-forward:
<GridView x:Name="gridItems" ItemContainerStyle="{StaticResource GridViewListContainerStyle}" ItemsSource="{Binding Items}" SelectionMode="None" AllowDrop="True" CanDragItems="True" VerticalAlignment="Top" HorizontalAlignment="Center" CanReorderItems="True" Padding="1">
<GridView.HeaderTemplate>
<DataTemplate>
<Grid>
<TextBox Text="{Binding Title}" Width="290" MaxLength="20"/>
</Grid>
</DataTemplate>
</GridView.HeaderTemplate>
<GridView.ItemTemplate>
<DataTemplate>
<local:MyControl DataContext="{Binding}"/>
</DataTemplate>
</GridView.ItemTemplate>
</GridView>
Thanks.