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
195
Changing TextBlock.Foreground of a row on Hover
posted

Hi,

I need to change the text color on hover for entire row; is it possible? I have tried different styles but couldn't get it working properly. it works seperately for each cell; means if I hover on a cell, the text changes color. But I want to change the color of text of entire row on mouse over in the same way as we hover and DataRecordCell area changes color of entire row.

If someone knows how can we do it, please let me know.

Thanks

Adeel 

Parents
No Data
Reply
  • 40
    posted

    Add the following styles:

     


            <Style TargetType="{x:Type igDP:DataRecordCellArea}">
                <Setter Property="ForegroundHoverStyle" Value="{x:Null}" />
            </Style>

            <Style TargetType="igDP:CellValuePresenter">
                <Setter Property="ForegroundHoverStyle" Value="{x:Null}" />
                <Setter Property="ForegroundSelectedStyle" Value="{x:Null}" />
                <Setter Property="ForegroundPrimaryStyle" Value="{x:Null}" />
                <Setter Property="ForegroundFieldSelectedStyle" Value="{x:Null}" />
                <Setter Property="ForegroundActiveStyle" Value="{x:Null}" />

                <Style.Triggers>
                    <Trigger Property="IsRecordSelected" Value="True">
                        <Setter Property="ForegroundStyle" Value="{x:Null}" />
                    </Trigger>
                    <Trigger Property="IsMouseOverRecord" Value="True">
                        <Setter Property="ForegroundStyle" Value="{x:Null}" />
                    </Trigger>
                </Style.Triggers>
            </Style>

Children