I would like to add a scrollable (vertically and horizontally) Grid in a row of an outer Grid. I want to set the Grid column widths based on the GridUnitType.Star. I can achieve this when the SrollView orientation is set to Vertical but not when set to Horizontal or Both. The following XAML demonstrates this:
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="MauiGrids.MainPage">
<Grid Margin="20" RowDefinitions="Auto,Auto,Auto">
<Grid Grid.Row="0" ColumnDefinitions="*,2*,3*">
<Label Text="Column 1 Outer" Grid.Row="0" Grid.Column="0"/>
<Label Text="Column 2 Outer" Grid.Row="0" Grid.Column="1"/>
<Label Text="Column 3 Outer" Grid.Row="0" Grid.Column="2"/>
</Grid>
<ScrollView Grid.Row="1" Orientation="Horizontal">
<Grid ColumnDefinitions="*,2*,3*">
<Label Text="Column 1 Horizontal" Grid.Row="0" Grid.Column="0"/>
<Label Text="Column 2 Horizontal" Grid.Row="0" Grid.Column="1"/>
<Label Text="Column 3 Horizontal" Grid.Row="0" Grid.Column="2"/>
</Grid>
</ScrollView>
<ScrollView Grid.Row="2" Orientation="Vertical">
<Grid ColumnDefinitions="*,2*,3*">
<Label Text="Column 1 Vertical" Grid.Row="0" Grid.Column="0"/>
<Label Text="Column 2 Vertical" Grid.Row="0" Grid.Column="1"/>
<Label Text="Column 3 Vertical" Grid.Row="0" Grid.Column="2"/>
</Grid>
</ScrollView>
</Grid>
</ContentPage>
The column widths of the outer and vertical grid are correctly set based on the Star value but these values are ignored in the case of the horizontal grid.
I was able to do this in Xamarin Forms but does not seem possible in Maui. Am I missing something.