Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (27 sloc) 1.29 KB
<?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="MusicApp.Views.SongListView"
Title="Song List">
<ContentPage.Content>
<StackLayout BackgroundColor="White">
<ListView x:Name="SongList" ItemSelected="SelectSong" HasUnevenRows="True">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout Margin="5" Padding="3">
<Label Text="{Binding Name}" FontSize="Medium"
LineBreakMode="WordWrap" TextColor="Black" Margin="2"/>
<Label Text="{Binding Artist}" FontSize="Small"
LineBreakMode="WordWrap" TextColor="Orange" Margin="2"/>
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</StackLayout>
</ContentPage.Content>
<ContentPage.ToolbarItems>
<ToolbarItem Text="Add" Order="Primary" Priority="0" Clicked="AddNewSong"/>
</ContentPage.ToolbarItems>
</ContentPage>
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.