parent
4201f8f766
commit
c36734dbd7
@ -0,0 +1,27 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
xmlns:local="clr-namespace:AD_MAUI.ViewModel"
|
||||||
|
x:Class="AD_MAUI.Views.AlbumPage"
|
||||||
|
x:DataType="local:AlbumViewModel">
|
||||||
|
|
||||||
|
<ScrollView>
|
||||||
|
<StackLayout>
|
||||||
|
<Image Source="{Binding CoverImage}" Aspect="AspectFit" />
|
||||||
|
<Label Text="{Binding Title}" FontSize="Large" />
|
||||||
|
<Label Text="{Binding Artist}" FontSize="Medium" />
|
||||||
|
|
||||||
|
<ListView ItemsSource="{Binding Songs}">
|
||||||
|
<ListView.ItemTemplate>
|
||||||
|
<DataTemplate x:DataType="local:SongViewModel">
|
||||||
|
<TextCell
|
||||||
|
Text="{Binding Title}"
|
||||||
|
Detail="{Binding Duration, StringFormat='\{0\} second(s)'}"
|
||||||
|
/>
|
||||||
|
</DataTemplate>
|
||||||
|
</ListView.ItemTemplate>
|
||||||
|
</ListView>
|
||||||
|
</StackLayout>
|
||||||
|
</ScrollView>
|
||||||
|
|
||||||
|
</ContentPage>
|
Loading…
Reference in new issue