Skip to content

Instantly share code, notes, and snippets.

@juucustodio
Created October 15, 2018 14:41
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 juucustodio/85b70ee1702baa95b5df880e8b429941 to your computer and use it in GitHub Desktop.
Save juucustodio/85b70ee1702baa95b5df880e8b429941 to your computer and use it in GitHub Desktop.
Example how to implement a Grouped ListView in Xamarin.Forms Applications - http://julianocustodio.com/GroupedListView
<?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:GroupedListApp"
x:Class="GroupedListApp.MainPage">
<StackLayout>
<ListView x:Name ="listView" IsGroupingEnabled="true"
GroupDisplayBinding="{Binding LongName}"
GroupShortNameBinding="{Binding ShortName}">
<ListView.ItemTemplate>
<DataTemplate>
<TextCell Text="{Binding Nome}" Detail="{Binding Descricao}" />
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</StackLayout>
</ContentPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment