Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
105
xamDataGrid header background
posted

Hi

I'm trying to change colors in Header section of xamDataGrid.

I have this styles in resources file:

 

    <Style TargetType="{x:Type igDP:DataRecordPresenter}">

        <Setter Property="HeaderAreaBackground" Value="{DynamicResource MainGridHeaderGradient}"/>

    </Style>

    <Style TargetType="{x:Type igDP:LabelPresenter}">

        <Setter Property="Background" Value="{DynamicResource MainGridHeaderGradient}"/>

        <Setter Property="LabelHighlight" Value="{DynamicResource MainButtonGradientActive}"/>

        <Style.Triggers>

            <Trigger Property="IsPressed" Value="True">

                <Setter Property="LabelHighlight" Value="{DynamicResource MainButtonGradientSelected}"/>

            </Trigger>

        </Style.Triggers>

    </Style>

 

This is almos, what I was looking for. But how to change background for column, that was clicked to sort data by it. 

I checked in Mole, and element that is visible in that state is 'highlight_1', but how can I change it's background. Is there any property (like 'LabelHighlight' for 'MouseOver') or something?