Skip to content

Instantly share code, notes, and snippets.

@aybarsyalcin
Last active December 12, 2017 13:10
Show Gist options
  • Save aybarsyalcin/a2d426bad8fba4cc7dd5777ce143dc6c to your computer and use it in GitHub Desktop.
Save aybarsyalcin/a2d426bad8fba4cc7dd5777ce143dc6c to your computer and use it in GitHub Desktop.
Title Detail ViewCell on ListView
<StackLayout>
<ListView x:Name="xCatalogList" ItemsSource="{Binding Items}" VerticalOptions="FillAndExpand" HasUnevenRows="true" ItemSelected="Handle_ItemSelected">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout Padding="10">
<Label Text="{Binding Text}" LineBreakMode="NoWrap" Style="{DynamicResource ListItemTextStyle}" FontSize="16" />
<Label Text="{Binding Description}" LineBreakMode="NoWrap" Style="{DynamicResource ListItemDetailTextStyle}" FontSize="13" />
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</StackLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment