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
325
Not sure how to fix unwanted MouseOver effects
posted

Although I specify the cells to have a foreground color of "foregroundLight" all the time, each cell's content in anyone row will change to a black foreground when i mouse over anyone cell in that row.  I would like them to stay the "foregroundLight" color. I am defining the XamDataGrid Containers with the following definitions:

 <!--CHILD (ChildLayout) -->

                    <igDP:FieldLayout Key="ChildLayout" ParentFieldLayoutKey="FieldLayout">

                        <igDP:FieldLayout.FieldSettings>

                            <igDP:FieldSettings AllowEdit="False"

                                        AllowResize="False"

                                        LabelTextAlignment="Left"                                      

                                        CellValuePresenterStyle="{StaticResource childCellStyle}"

                                        AllowHiding="ViaFieldChooserOnly"

                                        FilterOperandUIType="TextBox"

                                        />

                            </igDP:FieldLayout.FieldSettings>

                        <igDP:FieldLayout.Settings>

                            <igDP:FieldLayoutSettings LabelLocation="Hidden" 

                                                      DataRecordCellAreaStyle="{StaticResource childCellCollectionStyle}"

                                                      DataRecordPresenterStyle="{StaticResource childRowStyle2}"

                                                      FilterAction="None"                                             

                                                      RecordSelectorLocation="None"/>

                        </igDP:FieldLayout.Settings>

!--CHILD ROW-->

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

        <Setter Property="Background" Value="{StaticResource bblack}"/>

        <Setter Property="BorderBrush" Value="Transparent"/>

        <Setter Property="BorderThickness" Value="0"/>

        <Setter Property="Foreground" Value="{StaticResource foregroundLight}"/>

        <Setter Property="FontFamily" Value="pack://application:,,,/Theme/Fonts/#Segoe UI" />

        <Setter Property="TextOptions.TextFormattingMode" Value="Display"/>

        <Setter Property="VerticalContentAlignment" Value="Center"/>

        <Setter Property="Margin" Value="40,2,0,10"/>

        <Setter Property="Cursor" Value="Hand"/>

    </Style>

 

<!--CHILD CELL COLLECTION-->

    <Style x:Key="childCellCollectionStyle" TargetType="{x:Type igDP:DataRecordCellArea}">

        <Setter Property="Background" Value="{StaticResource bblack}"/>

        <Setter Property="BackgroundSelected" Value="{StaticResource bblack}" />

        <Setter Property="BackgroundActive" Value="{StaticResource bblack}" />

        <Setter Property="BackgroundHover" Value="{StaticResource bblack}" />

        <Setter Property="BorderBrush" Value="Transparent"/>

        <Setter Property="BorderHoverBrush" Value="Transparent"/>

        <Setter Property="BorderThickness" Value="0"/>

        <Setter Property="Foreground" Value="{StaticResource foregroundLight}"/>

 

        <Setter Property="ForegroundStyle" Value="{StaticResource LightForeground}"/>

        <Setter Property="ForegroundHoverStyle" Value="{StaticResource LightForeground}"/>

        <Setter Property="ForegroundSelectedStyle" Value="{StaticResource LightForeground}"/>

        <Setter Property="ForegroundActiveStyle" Value="{StaticResource LightForeground}"/>

        <Setter Property="FontFamily" Value="pack://application:,,,/Theme/Fonts/#Segoe UI" />

        <Setter Property="TextOptions.TextFormattingMode" Value="Display"/>

        <Setter Property="VerticalContentAlignment" Value="Center"/>

        <Setter Property="Margin" Value="0"/>

        <Setter Property="Cursor" Value="Hand"/>

 

    </Style>

 

<!--CHILD CELL-->

    <Converter:ValueToEnabledConverter x:Key="convEnabled" />

    <Style x:Key="childCellStyle" TargetType="{x:Type igDP:CellValuePresenter}">

        <Setter Property="BorderThickness" Value="0" />

        <Setter Property="CornerRadius" Value="2"/>

        <Setter Property="TextOptions.TextFormattingMode" Value="Display"/>

        <Setter Property="TextElement.FontFamily" Value="pack://application:,,,/Theme/Fonts/#Segoe UI" />

        <Setter Property="Height" Value="30"/>

        <Setter Property="VerticalContentAlignment" Value="Center"/>

        <Setter Property="Background" Value="{StaticResource bblack}"/>

        <Setter Property="BackgroundSelected" Value="{StaticResource fourthGrey}" />

        <Setter Property="BackgroundActive" Value="{StaticResource bblack}" />

        <Setter Property="BackgroundHover" Value="{StaticResource thirdGrey}" />

        <Setter Property="BorderBrush" Value="Transparent"/>

        <Setter Property="BorderHoverBrush" Value="Transparent"/>

        <Setter Property="BorderThickness" Value="0"/>

        <Setter Property="Foreground" Value="{StaticResource foregroundLight}"/>

        <!--<Setter Property="ForegroundStyle" Value="{StaticResource LightForeground}"/>-->

        <Setter Property="ForegroundHoverStyle" Value="{StaticResource DarkForeground}"/>

        <Setter Property="ForegroundSelectedStyle" Value="{StaticResource DarkForeground}"/>

        <Setter Property="ForegroundActiveStyle" Value="{StaticResource LightForeground}"/>

 

    </Style>

  <Style x:Key="childRowStyle2" TargetType="{x:Type igDP:DataRecordPresenter}" BasedOn="{StaticResource childRowStyle}">

                        <EventSetter Event="PreviewMouseRightButtonDown" Handler="DRP_MouseRightButtonDown" />

                    </Style>

Parents
No Data
Reply
  • 138253
    Offline posted

    Hello,

     

    I am just checking if you got this worked out or you still require any assistance or clarification on the matter.

Children
No Data