I search a solution to use a listview inside a Scrollview, without success at a time ????
The result I want is like a web page, in xaml you have a Page with a Scrollview and for child a grid and inside this grid some controls.
One of this controls is a ListView with for layout properties a dedicated row (*) and a minimum height (600).
If the window is to small to give the minimum height the page scrollview enter in action, and when the window is bigger than required the page scrollview is unactive and the builtin scrollview of listview enter in action (if the item list requiered more than available height) and the listview take the available height (row with *) to fill the viewport.
In the exemple below, when I use a control without a builtin scrollview instead of ListView this work like a charm. But with a control with a builtin scrollview, no. The listview take the height required for all items and never use the builtin scrollview and don’t respect the * of the row, uh no, this is not exactly true..
Why when a control without builtin ScrollView is inside a ScrollView the * is by the viewport of host Scrollview and why when a control with builtin ScrollView on the same case the * is infinite because it’s in Scrollview ?
<Page>
<ScrollView>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Text="Stackoverflowwwwwww" />
<ListView Grid.Row="1"
MinHeight="600" />
</Grid>
<ScrollView>
<Page>
I don’t understand why the behavior is different with a control with builtin scrollview or without a builtin scrollview.
Microsoft ListView MAUI
Microsoft warning on scroll in scroll