<Style TargetType="{x:Type ListViewItem}"> <Setter Property="BorderBrush" Value="Black"/> <Setter Property="BorderThickness" Value="0,0,0,1"/> </Style>
在ListViewItem里添加内容控件,想怎么玩就怎么玩
<ListView> <ListViewItem> <Grid Height="40" Width="200"> <Grid.ColumnDefinitions> <ColumnDefinition Width="40" /> <ColumnDefinition Width="117*" /> </Grid.ColumnDefinitions> <Image Source="Images\1.png"></Image> <TextBlock Grid.Column="1" Height="20" Margin="0,0,0,20">AAA</TextBlock> <TextBlock Grid.Column="1" Height="20" Margin="0,20,0,0">BBB</TextBlock> </Grid> </ListViewItem> </ListView>