Page 1 of 1

GridView's ColumnHeaderContainerStyle changes in Blend but not in Noesis.

Posted: 22 Nov 2018, 14:15
by asusralis
Blend: https://i.imgur.com/mWAdvbj.png

Noesis: https://i.imgur.com/w56ATDJ.png

I'm trying to change both the header's background, foreground, and font size, but I wasn't sure what I'm doing wrong.

Re: GridView's ColumnHeaderContainerStyle changes in Blend but not in Noesis.

Posted: 22 Nov 2018, 18:45
by sfernandez
I'm seeing that ColumnHeaderContainerStyle property is not being applied to the generated header controls, and also our default template for the GridViewColumnHeader is not binding to the control properties like Background, so changes there will not reflect in the header representation.
Could you please report it in our bugtracker, we will fix it as soon as we can.

In the meantime you can redefine the default style and template in your xaml:
<Grid
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Grid.Resources>
        <ControlTemplate x:Key="GridViewHeaderTemplate" TargetType="GridViewColumnHeader">
            <Border Background="Black">
                <ContentPresenter VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" />
            </Border>
        </ControlTemplate>
        <Style TargetType="GridViewColumnHeader">
            <Setter Property="Foreground" Value="Orange"/>
            <Setter Property="FontSize" Value="30"/>
            <Setter Property="Template" Value="{StaticResource GridViewHeaderTemplate}"/>
        </Style>
    </Grid.Resources>
    <ListView .../>
</Grid>

Re: GridView's ColumnHeaderContainerStyle changes in Blend but not in Noesis.

Posted: 24 Nov 2018, 23:01
by asusralis
Oops, the second picture was supposed to be the unchanged header in Unity.

I will submit it, thanks.

Re: GridView's ColumnHeaderContainerStyle changes in Blend but not in Noesis.

Posted: 27 Nov 2018, 18:04
by sfernandez
Ok, thanks.