I am currently changing the background row on my RadListView, when click selected via the visual item formatting event like this:
private static void RadListView_VisualItemFormatting(object sender, ListViewVisualItemEventArgs e)
{
if (e.VisualItem.Selected)
{
e.VisualItem.BackColor = Color.Red;
}
else
{
e.VisualItem.ResetValue(VisualElement.BackColorProperty, ValueResetFlags.None);
}
}This works great when I click on a row to select it. It does change to a red background.
If you click on another row that is not selected, the state does appear to change with the old row reverting back and the new row changing to a red background.
However if you click the same row, the one you just selected, nothing appears to happen.
How can you code up a toggle of a given row's selection state, if you click it once to select and click it again to deselect?
