For setting the background color of Listview rows in an alternate fashion (odd rows and even rows) at first create a style element : <Style x:Key="alternatingStyle" TargetType="{x:Type ListViewItem}"> <Style.Triggers> <Trigger Property="ItemsControl.AlternationIndex" Value="0"> <Setter Property="Background" Value="LightSkyBlue"></Setter> </Trigger> <Trigger Property="ItemsControl.AlternationIndex" Value="1"> <Setter Property="Background" Value="LightGray"></Setter> </Trigger> <Trigger Property="IsSelected" Value="True"> <Setter Property="Background" Value="Orange"/> </Trigger> </Style.Triggers> </Style> Now write this XAML code for ListVie
Work smarter, not harder.