Sample ListView IsGroupingEnabled
See original GitHub issueHi @adospace I am having a hard time creating the ItemsSource for ListView with IsGroupingEnabled(true).
I understand that without grouping we return one ViewCell so the internal system can reuse the ViewCells. Why does IsGroupingEnabled also return a ViewCell?
Syntactically this works but I am confused as to what should ViewCell return?
new ListView()
.IsGroupingEnabled(true)
.ItemsSource(State.GroupedItems, RenderGroup)
.HFill()
.VFill()
:
:
private ViewCell RenderGroup(GroupedCollection<string, Contact> groupedContacts) => new ViewCell
{
};
I am trying to recreate the standard iOS grouped contact list:
Issue Analytics
- State:
- Created 4 months ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
ListView Appearance - Xamarin
This article explains how to customize ListViews in Xamarin.Forms applications by using headers, footers, groups, and variable height cells.
Read more >Xamarin.Forms - ListView Grouping - Code Samples
Sample code associated with the ListView Docs: This sample demonstrates how to implement grouping in a ListView, using both XAML and C (UI)...
Read more >Xamarin Forms ListView Grouping
The ListView control is the go to control for displaying a list of data in Xamarin Forms. It contains a number of features, ......
Read more >ListView grouping - The complete WPF tutorial
Adding grouping to the WPF ListView is very simple - all you need is a GroupStyle with a HeaderTemplate, to tell the ListView...
Read more >Xamarin Forms ListView Grouping Contents not Binding
I am having issues using ListView Grouping to get the content of my lists to display in labels. The ListView's ItemsSource and ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fixed in 1.0.128
Just pushed some fixes and enhancements for the ListView. I’ve added a sample page to the Test App project showing how to group list view items. If you need the Nuget package please wait a couple of hours.