We’re using C# Maui with net8.0-android34.0!
We have encountered some problems when trying to display a ListView with an ObservableCollection in a Grid.
When the ListView is outside the grid, there are no problems displaying the content (except that FillAndExpand doesn’t quite work…)
With the following code it does not work to display the items in the collection => I see the “scrollbar” on the side, but the content is only displayed if I try to scroll manually.
<Grid BackgroundColor="Transparent">
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
....
</Grid.RowDefinitions>
<ListView
VerticalOptions="Center"
CachingStrategy="RecycleElement"
HorizontalOptions="Center"
IsPullToRefreshEnabled="True"
Grid.Row="0"
BackgroundColor="Transparent"
x:Name="lvActivities"
IsRefreshing="{Binding IsWorking}"
ItemsSource="{ Binding ActivityTexts }"
SeparatorVisibility="None"
HasUnevenRows="true"
ItemTemplate="{ DynamicResource Selector }"
SelectionMode="Single"
Style="{ StaticResource ResponsiveLandscapeMarginStyle }"
ItemTapped="LvActivities_ItemTapped" >
</ListView>
....
</Grid>
Do you have some ideas what’s wrong? Is this a known bug?
Thank you for your help.
Yours sincerely,
Bernd