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
230
Getting the backcolor of a cell to something other than white
posted

I'm trying to get the backcolor of cell Textblock to something other than white when it has been moused over. (see attached image)

I have tried overriding the CellValuePresenter and in the process have changed every color in the cell except for the back color of the Textblock (which is white in the screen cap). I've tried changing the the "PART_EditorSite" ContentPresenter, but with no luck.

I would like for the backgroun to go transparent.  Trying to get similar behavior as the Office2007Black theme where when you mouse over, all you see is the Orange and not the white textbox.

Thanks for you help in advance.

Parents
No Data
Reply
  • 9836
    posted

    You can try with the following style :

    <igDP:XamDataGrid x:Name="xamDataGrid1" BindToSampleData="True" >
                <igDP:XamDataGrid.Resources>
                    <Style TargetType="{x:Type igDP:DataRecordCellArea}">
                            <Setter Property="BackgroundHover" Value="Red" />
                    </Style>
                </igDP:XamDataGrid.Resources>                                                                                      </igDP:XamDataGrid>

    Regards

    Vlad

Children