Can't get WPF Listview to collapse when expanders in the listview collapse
问题 I have a wpf ListView with two Expander s in it. When the expanders expand the listview makes room for the content. When they collapse the listview does not "take back" that extra space. I have set HorizontalAlignment and VerticalAlignment to Stretch everywhere. Is there a way to do this? The Details and Chart columns contain the expanders. See code below. Thanks. Here at <Window.Resources> <DataTemplate x:Key="StockPriceChangeCell"> <StackPanel Orientation="Horizontal"> <Label Name=