|
|
|
@ -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">
|
|
|
|
@ -27,7 +36,7 @@
|
|
|
|
|
Margin="32,0,32,0"
|
|
|
|
|
Grid.Row="0"/>
|
|
|
|
|
|
|
|
|
|
<StackLayout Padding="10"
|
|
|
|
|
<StackLayout Padding="8"
|
|
|
|
|
Grid.Row="1">
|
|
|
|
|
<Label Text="{Binding Title}"
|
|
|
|
|
FontSize="24"
|
|
|
|
@ -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"/>
|
|
|
|
@ -78,7 +87,7 @@
|
|
|
|
|
<StackLayout>
|
|
|
|
|
<Grid Margin="0,8,0,8">
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="36"/>
|
|
|
|
|
<ColumnDefinition Width="32"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
@ -109,21 +118,21 @@
|
|
|
|
|
<BoxView HeightRequest="1"
|
|
|
|
|
Color="{StaticResource Gray300}"
|
|
|
|
|
HorizontalOptions="FillAndExpand"
|
|
|
|
|
Margin="36,0,8,0"/>
|
|
|
|
|
Margin="32,0,8,0"/>
|
|
|
|
|
</StackLayout>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</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>
|
|
|
|
|