In the Windows Store 8.1 (Preview) XAML/C# project I've got a ListView whose items may have a varying height (depending on the content), which I want to limit to a maximum value.
The problem seems to be that:
- If I don't specify any Height restriction in the ListView definition, the items in the list are rendered with dynamic heights, as expected.
- If I specify only the MinHeight (for ListView.ItemContainerStyle with TargetType="ListViewItem"), the items in the list are still rendered with dynamic heights, as expected, with the minimum height respected.
- But if I specify the MaxHeight similarly, all the list items are rendered with the same fixed height.
Is there a framework implementation problem here, or am I missing something fundamental about how these properties are supposed to work?
And in any case, what would be the proper way (or the workaround if there isn't such a way) to achieve the desired goal of having dynamically sized items up to a max height?