Vertical gridlines in a ListView
问题 I've got a WPF ListView that I'm using as a GridView. Is there any way I can get vertical gridlines in there? The ListView has a MinHeight specified, so I'd like the GridLine to go all the way to the bottom of the grid, so it'll fill the empty space. This seems to be a rather tricky problem. Is is possible to solve? 回答1: This is how I do it. <ListView Grid.IsSharedSizeScope="True" ItemsSource="{Binding Path=MyList,FallbackValue='12345'}" > <ListView.ItemTemplate> <DataTemplate> <Grid> <Grid