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
800
Changing the labelpresenter selected color
posted

Can you tell me how to change the color of the column header when the column has been clicked?

It still appears as the default blue with white text.

Also the little white lines between the column headers, how to I change those from white.

 

See attached image.

 

I have tried the following:

 

        <Style TargetType="{x:Type igDP:LabelPresenter}">
            <Setter Property="Background"  Value="{DynamicResource NormalBrush}"/>
            <Setter Property="Foreground"  Value="White"/>
            <Setter Property="BorderBrush" Value="{DynamicResource NormalBorderBrush}"/>
            <Setter Property="LabelHighlight" Value="{DynamicResource NormalBrush}"/>
            <Setter Property="InnerBorderBrush" Value="{DynamicResource NormalBrush}"/>
            <Setter Property="OuterBorderBrush" Value="{DynamicResource NormalBrush}"/>
            <Style.Triggers>
                <Trigger Property="SortStatus" Value="Ascending">
                    <Setter Property="Background" Value="{DynamicResource NormalBrush}"/>
                </Trigger>
                <Trigger Property="SortStatus" Value="Descending">
                    <Setter Property="Background" Value="{DynamicResource NormalBrush}"/>
                </Trigger>
            </Style.Triggers>
        </Style>