Home Forums WPF controls Xceed DataGrid for WPF Problem with DataRow MouseOver background Color

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #26328 |

    I am facing problem with MouseOver on the DataRow

    The problem is,

    When ever Mouse Over on the DataRow the foreground color of DataRow (Text color) is changing
    but the Background Color is not changing ,How can I achieve this problem .

    I have try with this code but I am unable to get the background color

    <Style.Triggers>
    <Trigger Property=”IsMouseOver” Value=”True”>
    <Setter Property=”BorderBrush” Value=”Red”/>
    <Setter Property=”Background” Value=”Red”/>
    <Setter Property=”Foreground” Value=”Red”/>
    </Trigger>
    <Trigger Property=”IsMouseOver”
    Value=”True”>
    <Setter
    Property=”BorderBrush”
    Value=”{StaticResource hotRowBorderBrush}” />
    <Setter
    Property=”Background”
    Value=”{StaticResource hotOuterRowBackgroundBrush}” />
    <Setter
    Property=”Background”
    Value=”{StaticResource hotInnerRowBackgroundBrush}” />
    </Trigger>
    </Style.Triggers>

    Thanks,
    Ramana

    Imported from legacy forums. Posted by vasudeva rao (had 2142 views)

    Xceed Support
    Member
    Post count: 5658

    The background of a row is sometimes determined by the theme and cannot be modified in this manner. If you try another theme, for example, LunaNormalColor, the style will work.

    Imported from legacy forums. Posted by Jenny [Xceed] (had 2808 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.