Hi I used to use a datagrid but it was soooo slow when working with tabs, so I switched to ListView but I don’t know how to style it, (it’s a lot more complicated than DataGrid in my opinion).
So I was wondering how to do this for ListView:
<Style x:Key="gridCell" TargetType="DataGridCell">
<Setter Property="BorderBrush"
Value="{StaticResource lightBlueBrush}" />
<Style.Triggers>
<DataTrigger Binding="{Binding Path=Status}" Value="Otpisano">
<Setter Property="Background" Value="Red"/>
</DataTrigger>
</Style.Triggers>
</Style>
And then in the View
CellStyle="{StaticResource gridCell}"
This is how you do the Styling:
Answer