Search code examples
xamarin.formscollectionview

Grouped CollectionView With Horizontal Orientation In Xamarin.Forms?


Issue Displaying Second Grouped Items  Grouped CollectionView Display

I have checked on collectionview property i was trying to display grouped collection view with horizontal orientation ,i got into issue the grouped items are also displaying in horizontal view. can any one help me on resolving issue or any suggestion on implementing like shared image **


Solution

  • Option 1: You could create a CollectionView in each cell .

    Option 2: It would be better to use BindableLayout

    <CollectionView.ItemTemplate>
    
          <DataTemplate>
    
               <ScrollView BindableLayout.ItemsSource="{Binding xxx}" Orientation="Horizontal">
    
                    // set items here 
    
                </ScrollView>
    
          </DataTemplate>
    
    </CollectionView.ItemTemplate>
    

    For more details you could check the docs .