You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
3.5 KiB
65 lines
3.5 KiB
<?xml version="1.0" encoding="utf-8" ?>
|
|
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
xmlns:composants="clr-namespace:BookApp.Composants"
|
|
xmlns:model="clr-namespace:Model;assembly=Model"
|
|
x:Name="ThisPage"
|
|
x:Class="BookApp.Composants.GroupCollection">
|
|
|
|
<CollectionView ItemsSource="{Binding AuteurGroups}" IsGrouped="True" SelectionMode="Single">
|
|
<CollectionView.GroupHeaderTemplate>
|
|
<DataTemplate x:DataType="model:Author">
|
|
<Label Text="{Binding Name}"
|
|
FontFamily="SF-Compact-Display-Semibold"
|
|
BackgroundColor="LightGrey"
|
|
TextColor="Gray"
|
|
Padding="5"/>
|
|
</DataTemplate>
|
|
</CollectionView.GroupHeaderTemplate>
|
|
<CollectionView.ItemTemplate>
|
|
<DataTemplate x:DataType="model:Book">
|
|
<StackLayout Style="{StaticResource StyleCollectionStack}">
|
|
<Grid>
|
|
<Grid.GestureRecognizers>
|
|
<TapGestureRecognizer Command="{Binding Source={x:Reference ThisPage}, Path=Nav.BookDetailCommand}"
|
|
CommandParameter="{Binding Id}"/>
|
|
</Grid.GestureRecognizers>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Image Grid.Column="0"
|
|
Source="{Binding ImageLarge}"
|
|
HeightRequest="125"
|
|
WidthRequest="125"
|
|
Margin="0,10,0,10"/>
|
|
<StackLayout Grid.Column="1">
|
|
<Label Text="{Binding Title}"
|
|
FontFamily="SF-Compact-Display-Bold"
|
|
FontSize="18"
|
|
TextColor="Black"/>
|
|
<!-- <Label Text="{Binding Authors, Converter=}" FontFamily="SF-Compact-Display-Semibold" TextColor="Black"/> -->
|
|
<Label
|
|
TextColor="SlateGray"
|
|
Text="{Binding Status}"/>
|
|
|
|
<StackLayout Margin="0,10" Orientation="Horizontal" VerticalOptions="EndAndExpand">
|
|
<Image Source="empty_star.svg" WidthRequest="25" HeightRequest="25"/>
|
|
<Image Source="empty_star.svg" WidthRequest="25" HeightRequest="25"/>
|
|
<Image Source="empty_star.svg" WidthRequest="25" HeightRequest="25"/>
|
|
<Image Source="empty_star.svg" WidthRequest="25" HeightRequest="25"/>
|
|
<Image Source="empty_star.svg" WidthRequest="25" HeightRequest="25"/>
|
|
</StackLayout>
|
|
|
|
</StackLayout>
|
|
</Grid>
|
|
<Rectangle Margin="25,0,0,10" HeightRequest="1" BackgroundColor="LightGray" VerticalOptions="End" />
|
|
</StackLayout>
|
|
</DataTemplate>
|
|
</CollectionView.ItemTemplate>
|
|
</CollectionView>
|
|
</ContentView>
|