Xamarin Forms CollectionView not showing on iPhone but on Android and Android simulator


I have a problem and a question regarding Xamarin.Forms and CollectionView. I implemented a CollectionView as a Main Menu and on Android it is working fine.
But on my iPhone it is not showing the CollectionView.
The ScrollView is showing I think because the LightBlue background is visible on my iPhone.

It is build for iOS 9 and Android 9.0 and with XCode 12.2.

Are there known issues with ObservableCollections, CollectionViews, some attributes or maybe someone can tell my what I did wrong.

This is how it looks on Android:

Android CollectionView Image

This is my xaml code and C# code:

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"


 <ScrollView BackgroundColor="LightBlue">

     <CollectionView Grid.Row="3" Grid.ColumnSpan="2" ItemsSource="{Binding AllMenuItems}"
                     SelectedItem="{Binding SelectedMenuItem}"
                     SelectionChangedCommand="{Binding SelectedMenuItemChangedCommand}">
                 <GridItemsLayout Orientation="Vertical" Span="2" />
                     <StackLayout Padding="10,10">
                     <Frame CornerRadius="50">
                         <Label x:Name="label1" Text="{Binding .}" FontSize="Title" WidthRequest="100"
                                VerticalTextAlignment="Center" HorizontalTextAlignment="Center"
                                HeightRequest="{Binding Width, Source={x:Reference label1}}"/>
AllMenuItems = new ObservableCollection<string>
             "Unit Conversions",
             "Wind Calculations",
             "Fuel Calculations"

     string selectedMenuItem;
     public string SelectedMenuItem
         get => selectedMenuItem;
             selectedMenuItem = value;

             var args = new PropertyChangedEventArgs(nameof(SelectedMenuItem));

             PropertyChanged?.Invoke(this, args);

Source: Xamarin.ios Questions

Categorised as Uncategorised Tagged , , , ,


Leave a Reply

Your email address will not be published. Required fields are marked *

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us