|
|
|
@ -3,9 +3,18 @@
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
|
|
|
xmlns:local="clr-namespace:AMC.View"
|
|
|
|
|
xmlns:strings="clr-namespace:AMC.View.Resources.Strings"
|
|
|
|
|
xmlns:conv="clr-namespace:AMC.View.Converters"
|
|
|
|
|
xmlns:vm="clr-namespace:AMC.ViewModel.ViewModels;assembly=AMC.ViewModel"
|
|
|
|
|
x:Class="AMC.View.Views.AlbumPage"
|
|
|
|
|
x:DataType="vm:AlbumViewModel">
|
|
|
|
|
<ContentPage.Resources>
|
|
|
|
|
<ResourceDictionary>
|
|
|
|
|
<conv:SongsInfoConverter x:Key="SongsInfo" />
|
|
|
|
|
<conv:CopyrightInfoConverter x:Key="CopyrightInfo" />
|
|
|
|
|
<conv:AlbumDetailsConverter x:Key="AlbumDetails" />
|
|
|
|
|
</ResourceDictionary>
|
|
|
|
|
</ContentPage.Resources>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ScrollView BackgroundColor="{AppThemeBinding Light={StaticResource Background}, Dark={StaticResource BackgroundDark}}">
|
|
|
|
|
<Grid Margin="10">
|
|
|
|
@ -41,7 +50,7 @@
|
|
|
|
|
</StackLayout>
|
|
|
|
|
|
|
|
|
|
<StackLayout Grid.Row="2">
|
|
|
|
|
<Label Text="{Binding Details}"
|
|
|
|
|
<Label Text="{Binding Details, Converter={StaticResource AlbumDetails}}"
|
|
|
|
|
FontSize="12"
|
|
|
|
|
TextColor="{StaticResource Gray}"
|
|
|
|
|
HorizontalTextAlignment="Center"/>
|
|
|
|
@ -115,15 +124,15 @@
|
|
|
|
|
</CollectionView.ItemTemplate>
|
|
|
|
|
</CollectionView>
|
|
|
|
|
|
|
|
|
|
<Label Text="{Binding ReleaseDate}"
|
|
|
|
|
<Label Text="{Binding ReleaseDate, StringFormat='{0:d MMMM yyyy}'}"
|
|
|
|
|
Style="{StaticResource FooterLabel}"
|
|
|
|
|
Grid.Row="5" />
|
|
|
|
|
|
|
|
|
|
<Label Text="{Binding SongsInfo}"
|
|
|
|
|
<Label Text="{Binding SongsInfo, Converter={StaticResource SongsInfo}}"
|
|
|
|
|
Style="{StaticResource FooterLabel}"
|
|
|
|
|
Grid.Row="6" />
|
|
|
|
|
|
|
|
|
|
<Label Text="{Binding CopyrightInfo}"
|
|
|
|
|
<Label Text="{Binding CopyrightInfo, Converter={StaticResource CopyrightInfo}}"
|
|
|
|
|
Style="{StaticResource FooterLabel}"
|
|
|
|
|
Grid.Row="7" />
|
|
|
|
|
</Grid>
|
|
|
|
|