I have the following straightforward list view in a window that is 300px by 300px in size.
<ListView>
<ListView.View>
<GridView>
<GridViewColumn Width="400" Header="test" />
</GridView>
</ListView.View>
<!-- <ListViewItem /> -->
</ListView>
When the ListViewItem
is present a horizontal scroll bar appears as expected, however as soon as the list view is empty horizontal scroll bars will not appear even if I resize the columns to be wider than the window.
Is there an easy way to modify the list view so that when the columns are too wide the horizontal scroll bars appear as in the first screenshot, even when there are no items in the list view? (I don't want the scroll bar to be permenantly visible, I just don't want the visibility to depend on whether or not there are items in the list view).