Skip to content

Instantly share code, notes, and snippets.

@jfversluis
Created December 26, 2017 22:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jfversluis/45d40fede0946633dff281246943d324 to your computer and use it in GitHub Desktop.
Save jfversluis/45d40fede0946633dff281246943d324 to your computer and use it in GitHub Desktop.
The XAML of our page
<?xml version="1.0" encoding="utf-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:GroupingListViewSample"
x:Class="GroupingListViewSample.GroupingListViewSamplePage">
<ListView ItemsSource="{Binding PhonesList}" IsGroupingEnabled="True" GroupDisplayBinding="{Binding Name}">
<ListView.ItemTemplate>
<DataTemplate>
<TextCell Text="{Binding Title}" />
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</ContentPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment