I have a grid with cell backcolor customized in the CellFormatting event (selected cells are highlighted as blue). Once the cells are not selected, I need to return the cell backcolor to its original color. I first tried setting e.CellElement.BackColor = Color.Empty;
& Color.Transparent but this makes the cell as White instead of following the AlternateRowColor. After going through the documentation, I found that I can use CellElement.ResetValue(VisualElement.BackColorProperty). This seems to work better since it respects the AlternateRowColor. However, when I am using some of the Themes, it doesn't respect the ThemeColors. Is there something I am missing?
Regards,
MP