Remove Highlight Effect from ListViewItem

I don’t know if this is the only solution but I did it as follows (by setting the Template property of the ListViewItems): <ListView.ItemContainerStyle> <Style TargetType=”{x:Type ListViewItem}”> <Setter Property=”Background” Value=”Transparent” /> <Setter Property=”Template”> <Setter.Value> <ControlTemplate TargetType=”{x:Type ListViewItem}”> <Border BorderBrush=”Transparent” BorderThickness=”0″ Background=”{TemplateBinding Background}”> <GridViewRowPresenter HorizontalAlignment=”Stretch” VerticalAlignment=”{TemplateBinding VerticalContentAlignment}” Width=”Auto” Margin=”0″ Content=”{TemplateBinding Content}”/> </Border> </ControlTemplate> </Setter.Value> </Setter> </Style> … Read more

What’s the difference between ItemTemplate and ItemContainerStyle in a WPF ListBox?

The ItemTemplate is for styling how the content of your data item appears. You use it to bind data fields, format display strings, and so forth. It determines how the data is presented. The ItemContainerStyle is for styling the container of the data item. In a list box, this would be a ListBoxItem. Styling here … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)