chào mọi người!
trong này có ai làm về wpf cho em hỏi là làm sao mình hiển thị gridlines trong listview như trong winform nhỉ?
<ListView Name="lsvMain" Grid.RowSpan="3" Grid.ColumnSpan="3" >
<ListView.Resources>
<Style x:Key="xView" TargetType="{x:Type ListViewItem}">
<Setter Property="HorizontalContentAlignment" Value="Center"></Setter>
<Setter Property="HorizontalAlignment" Value="Left"></Setter>
<Setter Property="BorderBrush" Value="Yellow"></Setter>
<Setter Property="BorderThickness" Value="0, 20, 20, 5"></Setter>
</Style>
</ListView.Resources>
<ListView.View>
<GridView>
<GridViewColumn Header="Name" DisplayMemberBinding="{Binding Name}"/>
<GridViewColumn Header="Age" DisplayMemberBinding="{Binding Age}"/>
<GridViewColumn Header="Mail" Width="Auto" DisplayMemberBinding="{Binding Mail}"/>
</GridView>
</ListView.View>
</ListView>