Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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