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
640
How to change the Mouse Over Background Color for the GroupByAreaFieldLabel
posted

I am able to change the normal background and foreground color, but not the mouse over background color.  Below is my code.  Please advise on how to complete the style correctly:

<Style x:Key="myCustomerGroupByFieldStyle" TargetType="{x:Type igDP:GroupByAreaFieldLabel}">     
       
        <Setter Property="Foreground" Value="{StaticResource LabelForegroundBrush}" />
        <Setter Property="Background" Value="{StaticResource MouseOverBrush}" />
        <Setter Property="FontWeight" Value="Bold" />
       <Style.Triggers>
            <Trigger Property="IsKeyboardFocused" Value="true">
                <Setter Property="BorderBrush" Value="{StaticResource DefaultedBorderBrush}" />
            </Trigger>

            <Trigger Property="IsMouseOver" Value="true">
                <Setter  Property="Background" Value="{StaticResource MouseOverBrush}" />
            </Trigger>
        </Style.Triggers>
    </Style>