I am using the VisualListItemFormatting event to achieve an alternating item background color effect like so:
However, this appears to affect the mouse over background color. Here's the default mouseover on a row not impacted by the formatting above (note the entire background is highlighted):
http://screencast.com/t/AmWsEe7sYvwc
And here's the mouseover on a row impacted by the formatting (note that the background is not highlighted - only a border appears):
http://screencast.com/t/HD2AfEEs
How can I make these consistent? Preferably all of the items would have the entire background color changed. OR, is there a better way to achieve alternating item colors that would not cause this issue?
Private _rowIndex As Integer = 0 Private Sub cmb_VisualListItemFormatting(sender As Object, args As VisualItemFormattingEventArgs) Handles cmb.VisualListItemFormatting If _rowIndex Mod 2 = 0 Then args.VisualItem.SetValue(LightVisualElement.BackColorProperty, Color.FromArgb(224, 226, 255)) args.VisualItem.SetValue(LightVisualElement.GradientStyleProperty, GradientStyles.Solid) End If _rowIndex = _rowIndex + 1 End SubHowever, this appears to affect the mouse over background color. Here's the default mouseover on a row not impacted by the formatting above (note the entire background is highlighted):
http://screencast.com/t/AmWsEe7sYvwc
And here's the mouseover on a row impacted by the formatting (note that the background is not highlighted - only a border appears):
http://screencast.com/t/HD2AfEEs
How can I make these consistent? Preferably all of the items would have the entire background color changed. OR, is there a better way to achieve alternating item colors that would not cause this issue?
