Skip to content

Instantly share code, notes, and snippets.

@icebeam7
Created December 16, 2018 13:50
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save icebeam7/9b4ec876be70215d6589c5bf2cdddcdf to your computer and use it in GitHub Desktop.
VideoGameMusicApp: PaginaListaCanciones.xaml
<?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="VideoGameMusicApp.Views.PaginaListaCanciones"
Title="Música de videojuegos"
BackgroundColor="Black">
<ContentPage.Content>
<StackLayout>
<ActivityIndicator
IsVisible="{Binding IsLoading}"
IsRunning="{Binding IsLoading}"
VerticalOptions="CenterAndExpand"
HorizontalOptions="CenterAndExpand"
Color="Green"/>
<ListView
ItemsSource="{Binding Canciones}"
CachingStrategy="RecycleElement"
HasUnevenRows="True"
Margin="10">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout Margin="5" Padding="3">
<Label
Text="{Binding Title}"
FontSize="Medium"
TextColor="Orange" />
<Label
Text="{Binding Game}"
FontSize="Small"
TextColor="LightBlue"
FontAttributes="Italic" />
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</StackLayout>
</ContentPage.Content>
</ContentPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment