<Style TargetType="DataGridCell">
<Style.Setters>
<Setter Property="TextBlock.TextAlignment" Value="Center" />
</Style.Setters>
</Style>
<Setter Property="TextBlock.TextAlignment" Value="Center" />
</Style.Setters>
</Style>
<ListView.Resources> <Style x:Key="itemstyle" TargetType="{x:Type ListViewItem}"> <Setter Property="BorderThickness" Value="1" /> <Setter Property="BorderBrush" Value="#BABABE" /> </Style> </ListView.Resources>
myListView.ItemContainerStyle =
(Style)myListView.Resources["itemstyle"];