Hi,
I have a grid in my application and configured it that complete rows are selectable. The cells at each row may have different background colors based on the status of the attached data. But in case the row is selected the background color of the cells is completely hidden by the selection background color.
The best would be, if I can change the background color of the selection to an opacity of 0.25, then the normal background color of the cell will shimmer through. I am also fine if the selection is shown in a different way without modifying the background color of the cells, e.g. just make the border thickness of selected cells different.
Does anyone know, how I can do this?
RegardsJohannes
Hi Steve,
yes, of course this helps. But before editing the ControlTemplate it is good to question about if there is some built-in functionality.The second issue is, that I am not very familiar with the VisualStateManager.
But finally I was able to modify the visual state of the selected cells. In addition I also adapted the hover style, when the mouse is over the cells.
Thanks.
Regards,Johannes
Hi Johannes,
You would need to re-template the Cell's ControlTemplate.
The following tutorial explains how to update a CellControl's Template:
http://help.infragistics.com/NetAdvantage/Silverlight/2010.2/CLR4.0/?page=SL_DesignersGuide_Editing_Style_Properties_Using_Expression_Blend.html
Hope this helps,
-SteveZ