How can we use viewForSupplementaryElementOfKind collectionView method for TableView? Is there a different method?

I’m pulling data using API and it comes to me in chunks of 20. I need to get this data by scrolling. In Collection View I do this using viewForSupplementaryElementOfKind. Which method should I use for Table View? >Solution : When you have a paginated endpoint, generally the solution is to implement the scrollViewDidScroll delegate… Read More How can we use viewForSupplementaryElementOfKind collectionView method for TableView? Is there a different method?

Getting Index of Tapped collectionview item xamarin

I have a CollectionView that is bound to Agent data (from the Valorant-api) private async void ShowAgents() { Root agent = await AgentRepository.GetAgent(); Agents = new ObservableCollection<Data>(agent.data); lvwAgents.ItemsSource = Agents; } The xaml: <CollectionView x:Name="lvwAgents" Grid.Row="5" Grid.ColumnSpan="2" HorizontalScrollBarVisibility="Never" Margin="0,-25,-75,0"> <CollectionView.ItemsLayout> <LinearItemsLayout ItemSpacing="10" Orientation="Horizontal" /> </CollectionView.ItemsLayout> <CollectionView.ItemTemplate > <DataTemplate> <Grid> <pcview:PancakeView CornerRadius="60,60,60,60" HeightRequest="200" BackgroundGradientStartPoint="0,0" BackgroundGradientEndPoint="1,0" VerticalOptions="End">… Read More Getting Index of Tapped collectionview item xamarin

Hello all, please help i am adding two collection views in one screen and getting this error

2022-08-05 22:33:19.540459+0530 MyProduct[1152:11251] *** Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘view reuse identifier in nib (story) does not match the identifier used to register the nib (StoryCell)’ >Solution : As the error says, you’re trying to call something like: yourTableView.register(yourNib, forIdentifier: .init(rawValue: "StoryCell")) to register yourNib for the id "StoryCell". The issue is… Read More Hello all, please help i am adding two collection views in one screen and getting this error

Xamarin Forms CollectionView Grouping Not Working With Intellisense

The Issue I am getting extremely confused with how grouping works in the CollectionView. I am able to get an output as expected using the recommended example from the Xamarin Documentation with the code below: CollectionView XAML <CollectionView IsGrouped="True" ItemsSource="{Binding CategoriesList}" RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.5}"> <CollectionView.ItemsLayout> <LinearItemsLayout Orientation="Vertical" ItemSpacing="10" /> </CollectionView.ItemsLayout> <CollectionView.GroupHeaderTemplate> <DataTemplate> <Label Text="{Binding… Read More Xamarin Forms CollectionView Grouping Not Working With Intellisense