WPF - hiding listbox items
Posted
by
user553765
on Stack Overflow
See other posts from Stack Overflow
or by user553765
Published on 2011-01-15T00:46:49Z
Indexed on
2011/01/15
0:53 UTC
Read the original article
Hit count: 121
Hi,
I have a listbox where the itemtemplate is using a style. The styles specifies a border with a datatrigger setting the visibility of the border to collapsed depending on a property. This works fine except I can still see a very narrow line for each item, in the list, that is collapsed. I was hoping someone could help with how to set the visibility so that there are no visible traces as this is quite apparent when consecutive items have been collapsed.
The datatemplate specifies an outer border with a dockpanel inside of this - there are then stackpanels docked to this.
Any help is appreciated.
© Stack Overflow or respective owner