Listview column and per row color question

Aug 1, 2013 at 6:56 AM
The code above only able to show the column to be yellow.

I need the column per row to show diff colors

example :




Is this possible to be done?

Please enlighten me.

Thanks alot !
<ListView x:Name="myListView" ItemsSource="{Binding Tabs}">
                <GridViewColumn Header="Column 1" DisplayMemberBinding="{Binding Name}"/>
                <GridViewColumn Header="Column 1">
                            <Grid Background="Yellow">
                                <TextBlock Text="{Binding Id}"/>
            <Style TargetType="ListViewItem">
                <Setter Property="HorizontalContentAlignment" Value="Stretch"/>