<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="BeatifulPlace.App.Views.PlacesPage"
xmlns:controls="clr-namespace:BeatifulPlace.App.Controls;assembly=BeatifulPlace.App"
Title="Lugares">
<ScrollView>
<Grid >
<controls:ExtendedListView IsSelectionEnabled="False"
HasUnevenRows="True"
SeparatorVisibility="None"
ItemsSource="{Binding Places,Mode=TwoWay}">
<controls:ExtendedListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<Grid Padding="{StaticResource ItemPadding}">
<Frame Padding="5">
<Frame.GestureRecognizers>
<TapGestureRecognizer Command="{Binding SelectCommand}" />
</Frame.GestureRecognizers>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Image Source="{Binding Thumbnail}" WidthRequest="50" HeightRequest="50" Aspect="Fill"/>
<StackLayout Grid.Column="1" Spacing="1">
<Label Text="{Binding Name }" FontSize="Medium" LineBreakMode="TailTruncation" />
<Label Text="{Binding Location}" LineBreakMode="TailTruncation" />
<Label Text="{Binding Description}" FontSize="Micro" LineBreakMode="TailTruncation" />
<StackLayout Orientation="Horizontal">
<Label Text="Likes: " FontAttributes="Bold"></Label>
<Label Text="{Binding Likes}"></Label>
</StackLayout>
</StackLayout>
</Grid>
</Frame>
</Grid>
</ViewCell>
</DataTemplate>
</controls:ExtendedListView.ItemTemplate>
</controls:ExtendedListView>
</Grid>
</ScrollView>
</ContentPage>
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.