Removing Borders in ListViewItem

I would like to remove the border that is between the border of the ListView and ListViewItem that looks like the border of LVItem. I really need to get rid of it, since I want the selected item to be associated with the right area of ​​the lightgray. (Of course, without this white border, which checked only the border, to see what happens to these borders in the list)

enter image description here

This is my style code: http://pastebin.com/TH83CaL0

And my xaml listview code is as follows:

http://pastebin.com/zvyJem02

Edit: I am new to wpf and xaml since I started from 1 week ago.

+6
source share
1 answer

I think that you can’t get rid of this border only with Styling, but you can move the "right lightgray" to the left a bit and let it overlap your ListView by setting Margin="-1.5 0 0 0" Panel.ZIndex="1" or (as you did) hide the ListBox a bit behind the gray area, setting it Margin="-1" .

+1
source

All Articles