You can set ItemContainerStyle :
<ListView ItemsSource="{Binding Updates}"> <ListView.View> <GridView> <GridViewColumn DisplayMemberBinding="{Binding TimeStamp}" Header="TimeStamp" /> <GridViewColumn DisplayMemberBinding="{Binding UpdateData}" /> </GridView> </ListView.View> <ListView.ItemContainerStyle> <Style TargetType="ListViewItem"> <Setter Property="FontSize" Value="14" /> <Setter Property="Foreground" Value="Blue" /> <Setter Property="FontWeight" Value="Bold" /> <Setter Property="FontStyle" Value="Italic" /> </Style> </ListView.ItemContainerStyle> </ListView>
Note that it will be applied to ListView elements, not to ListView itself (for example, column headings will not be affected). If you want to apply these properties to the entire ListView , you can set them directly in the ListView:
<ListView ItemsSource="{Binding Updates}" Foreground="Blue" FontSize="14" ...>
Thomas levesque
source share