|
|
|
@ -3,59 +3,36 @@
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
|
|
|
x:Class="PocketBook.LaterPage"
|
|
|
|
|
xmlns:local="clr-namespace:PocketBook"
|
|
|
|
|
Title="À lire plus tard"
|
|
|
|
|
Shell.ForegroundColor="{StaticResource Primary}"
|
|
|
|
|
x:Name="root"
|
|
|
|
|
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit">
|
|
|
|
|
|
|
|
|
|
<Grid RowDefinitions="auto, *">
|
|
|
|
|
|
|
|
|
|
<StackLayout Orientation="Vertical">
|
|
|
|
|
<StackLayout Orientation="Horizontal" Padding="5,10,0,10" >
|
|
|
|
|
<StackLayout Orientation="Horizontal" HorizontalOptions="StartAndExpand">
|
|
|
|
|
<Image Source="chevron_left.png">
|
|
|
|
|
<Image.Behaviors>
|
|
|
|
|
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
|
|
|
|
|
</Image.Behaviors>
|
|
|
|
|
</Image>
|
|
|
|
|
<Label Text="Mes livres" Style="{StaticResource TitleLabelLeftStyle}"/>
|
|
|
|
|
</StackLayout>
|
|
|
|
|
<Label Text="À lire plus tard" Style="{StaticResource TitleLabelStyle}"/>
|
|
|
|
|
<StackLayout HorizontalOptions="EndAndExpand" Orientation="Horizontal">
|
|
|
|
|
<ImageButton Source="plus.png" Style="{StaticResource RightIconToolBar2}">
|
|
|
|
|
<ImageButton.Behaviors>
|
|
|
|
|
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
|
|
|
|
|
</ImageButton.Behaviors>
|
|
|
|
|
</ImageButton>
|
|
|
|
|
<ImageButton x:Name="imageArrows" Style="{StaticResource RightIconToolBar}" Source="arrows.png">
|
|
|
|
|
<ImageButton.Behaviors>
|
|
|
|
|
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
|
|
|
|
|
</ImageButton.Behaviors>
|
|
|
|
|
</ImageButton>
|
|
|
|
|
</StackLayout>
|
|
|
|
|
</StackLayout>
|
|
|
|
|
<Line BackgroundColor="#E6E6E6"/>
|
|
|
|
|
|
|
|
|
|
</StackLayout>
|
|
|
|
|
<ContentPage.Resources>
|
|
|
|
|
|
|
|
|
|
</ContentPage.Resources>
|
|
|
|
|
|
|
|
|
|
<ContentPage.ToolbarItems>
|
|
|
|
|
<ToolbarItem Text="Ajouter" Priority="1"
|
|
|
|
|
Order="Primary" IconImageSource="plus.png"/>
|
|
|
|
|
<ToolbarItem Text="Order" Priority="2"
|
|
|
|
|
Order="Primary" IconImageSource="arrows.png"/>
|
|
|
|
|
</ContentPage.ToolbarItems>
|
|
|
|
|
|
|
|
|
|
<ScrollView Grid.Row="1">
|
|
|
|
|
<VerticalStackLayout>
|
|
|
|
|
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La horde du contrevent" AutorName="Alain Damasio" BookStatus="À lire plus tard"/>
|
|
|
|
|
<Line Style="{StaticResource LineStyle3}"/>
|
|
|
|
|
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La zone du dehors" AutorName="Alain Damasio" BookStatus="À lire plus tard"/>
|
|
|
|
|
<Line Style="{StaticResource LineStyle3}"/>
|
|
|
|
|
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="L'équateur d'Einstein" AutorName="Cixin Liu" BookStatus="À lire plus tard"/>
|
|
|
|
|
<Line Style="{StaticResource LineStyle3}"/>
|
|
|
|
|
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La forêt sombre" AutorName="Cixin Liu" BookStatus="À lire plus tard"/>
|
|
|
|
|
<Line Style="{StaticResource LineStyle3}"/>
|
|
|
|
|
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="Le problème à trois corps" AutorName="Cixin Liu" BookStatus="À lire plus tard"/>
|
|
|
|
|
<Line Style="{StaticResource LineStyle3}"/>
|
|
|
|
|
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="L'équateur d'Einstein" AutorName="Cixin Liu" BookStatus="À lire plus tard"/>
|
|
|
|
|
<Line Style="{StaticResource LineStyle3}"/>
|
|
|
|
|
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La forêt sombre" AutorName="Cixin Liu" BookStatus="À lire plus tard"/>
|
|
|
|
|
<Line Style="{StaticResource LineStyle3}"/>
|
|
|
|
|
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="Le problème à trois corps" AutorName="Cixin Liu" BookStatus="À lire plus tard"/>
|
|
|
|
|
|
|
|
|
|
<CollectionView x:Name="collection" IsGrouped="True" GroupHeaderTemplate="{StaticResource groupHeaderTemplate}" SelectionMode="Single" SelectionChangedCommand="{Binding LaterPageVM.NavigateDetailPage, Source={x:Reference root}}" SelectionChangedCommandParameter="{Binding SelectedItem, Source={x:Reference collection}}" ItemsSource="{Binding LaterPageVM.Manager.GroupedLaterBooks}">
|
|
|
|
|
<CollectionView.ItemTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<local:ContentViewBook Margin="0,5,0,0" NombreEtoile="2" BookImage="{Binding Image}" BookName="{Binding Title}" AutorName="{Binding BookFirstAuthor}" BookStatus="{Binding BookStatus}"/>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</CollectionView.ItemTemplate>
|
|
|
|
|
</CollectionView>
|
|
|
|
|
<StackLayout Orientation="Horizontal" Margin="0,20,20,20" HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand">
|
|
|
|
|
<Button Command="{Binding LaterPageVM.PaginationVM.LaterDecreasePage}" Text="Précédent"/>
|
|
|
|
|
<Label Text="{Binding LaterPageVM.Manager.IndexLater}" HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand" Margin="10,0,10,0"/>
|
|
|
|
|
<Button Command="{Binding LaterPageVM.PaginationVM.LaterIncreasePage}" Text="Suivant"/>
|
|
|
|
|
</StackLayout>
|
|
|
|
|
</VerticalStackLayout>
|
|
|
|
|
</ScrollView>
|
|
|
|
|
</Grid>
|
|
|
|
|
</ContentPage>
|