Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
1k views

ContentView - Binding Context is set to null

Currently I am playing around with .Net Maui but I maybe it's the same behavior as Xamarin. I've created a simple Search-Control which is based on a ContentView. ObjectSearchControl.xaml <...
Phil's user avatar
  • 512
0 votes
1 answer
843 views

Best way to load a grouped collection on Xamarin.Forms ListView/CollectionView with incremental loading

What would be the best way to load a grouped collection on Xamarin.Forms ListView/CollectionView with incremental loading? For example, say a collection contains several groups and each group contains ...
Tharindu's user avatar
  • 396
0 votes
2 answers
693 views

Is there a way to have 2 different objects following one another in a CollectionView in Xamarin.Forms?

I have a CollectionView that shows a list of Categories object like so: And I'd like to have a list of SubCategories to be listed right after it as if it was the same list. I know CollectionView only ...
Jimmy's user avatar
  • 135
0 votes
1 answer
185 views

How can I add a SelectionChanged in a CollectionView from code?

I would like to call a function when a cell of a Collection View (created in cs) were tapped. Here is the code: new StackLayout { Orientation = StackOrientation.Horizontal, ...
user15254403's user avatar
1 vote
1 answer
2k views

Xamarin community toolkit TouchEffect.Command not working in CollectionView

I'm trying to have a long press and short press command in a CollectionView. I'm using Xamarin.Community.ToolKit But target ViewModel Command is not being called. TouchEffect works when it's outside ...
Rene Tomlinson's user avatar
1 vote
2 answers
1k views

CollectionView VisualStateManager can't change selection color

I am trying to customize the selection color of a cell in a CollectionView but no matter how I try it, it's always an ugly grey. I want my item template to have rounded corners, but when I select an ...
Le Mot Juiced's user avatar
1 vote
1 answer
975 views

How can I visually make my Selected Item in a CollectionView (Horizontal), show at the center of my screen?

I have a ListView with some items, and when I select one of those items, I am moved to a new page with a Horizontal CollectionView, with my SelectedItem as the item I selected on the page before. I ...
solacking's user avatar
  • 335
1 vote
1 answer
4k views

Xamarin.Forms implement Lazy Loading in CollectionView

This is my CollectionView xaml file: <ContentPage.Content> <Grid> <StackLayout> <RefreshView IsRefreshing="{Binding IsRefreshing, Mode=...
Rajzer's user avatar
  • 1,256
0 votes
1 answer
252 views

Object Binding in CollectionView is not working properly with SwipeItem

In my ContentPage XAML file, I have a CollectionView setup like this: <ScrollView Grid.Row="1" Padding="0,0,0,0" BackgroundColor="LightGray" IsVisible="{ Binding ...
KadoLakatt's user avatar
0 votes
0 answers
100 views

e.CenterItemIndex turns to 0, each time group is change (OS)

I am using Scrolled event in collectionView for iOS. If CollectionView contains groups, e.CenterItemIndex turns to 0 each time group is changing. Is there any way i can fix this? private void ...
papa dp's user avatar
  • 65
0 votes
1 answer
208 views

CollectionView GridItemsLayout Change BackgroundColor of nested Item (Button)

I have a problem concerning a CollectionView with a GridItemsLayout. In my application, I have a StackLayout with a horizontal CollectionView(GridItemsLayout), which contains a Button bound to a ...
FabianK's user avatar
  • 43
0 votes
1 answer
458 views

How to use FindByName in CollectionView

How to implement FindByName inside a CollectionView with GestureRecognizers as the call. Please correct if something is wrong. private void ItemTapped(object sender, EventArgs e) { ...
borneo's user avatar
  • 59
1 vote
1 answer
221 views

CollectionView updating ImageButton scroll repeating UI issue

I've got a CollectionView containing an ImageButton. When the image is pressed I replace a.png with b.png. This is working fine but when I scroll down the list, every 10th item is now showing b.png! ...
KevinUK's user avatar
  • 5,143