ScrollView not working

kiwis

New member
Joined
Jan 26, 2025
Messages
2
Programming Experience
Beginner
I'm connecting to a JSON file via C# and loading my CollectionView ItemSource to this JSON data. It's loading but it's long and I cannot scroll down. Why not?

:
        <ScrollView VerticalOptions="FillAndExpand" VerticalScrollBarVisibility="Always">
            <CollectionView x:Name="lv" ItemsLayout="VerticalList" EmptyView="No players downlaoded" SelectionMode="Single" WidthRequest="500">
                <CollectionView.Header>
                    <VerticalStackLayout>
                        <Label Text="Players" HorizontalOptions="Center" FontSize="Header" FontAttributes="Bold"></Label>
                    </VerticalStackLayout>
                </CollectionView.Header>
            <CollectionView.ItemTemplate>
                <DataTemplate>
                        <Border Margin="10" Padding="10">
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="50"></ColumnDefinition>
                                    <ColumnDefinition Width="auto"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <VerticalStackLayout>
                                    <Label Grid.Column="1" Text="{Binding Id}" ></Label >
                                    <Label Grid.Column="2" Text="{Binding fullName}" FontAttributes="Bold"></Label >
                                </VerticalStackLayout>
                            </Grid>
                        </Border>
                    </DataTemplate>
            </CollectionView.ItemTemplate>
        </CollectionView>
        </ScrollView>
 

Latest posts

Back
Top Bottom