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
240
Background hover color
posted

Is it possible to change the background color when hovering on a cell? We're using the office 2013 theme and would like to eliminate the gradient.

Parents
No Data
Reply
  • 6365
    Offline posted

    Hello,

    In order to change the background hover color of the CellValuePresenter (visual representation of the Cell) when using the XamDataGrid with Office2013 theme, you can create a style for the CellValuePresenter and set the BackgroundHover property. Setting the BasedOn property to Office2013.CellValuePresenter will be necessary as well in order to keep the default styling.

    XAML:

    <igDP:XamDataGrid.Resources>
        <Style TargetType="igDP:CellValuePresenter" BasedOn="{x:Static igThemes:DataPresenterOffice2013.CellValuePresenter}">
            <Setter Property="BackgroundHover" Value="LightGreen" />
        </Style>
    </igDP:XamDataGrid.Resources>

    If you have any questions, please let me know.

Children