💄 Ordonnancement de fichier, mise en place des styles et des colors, ajout des dernières pages, changement de logo pour le calendrier
parent
8a14c4a337
commit
c56e47c4b8
@ -1,69 +0,0 @@
|
||||
<?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"
|
||||
x:Class="PocketBook.Auteur"
|
||||
Title="Auteur"
|
||||
xmlns:local="clr-namespace:PocketBook"
|
||||
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit">
|
||||
|
||||
<Grid RowDefinitions="auto,auto, *">
|
||||
<StackLayout Orientation="Vertical">
|
||||
<StackLayout Orientation="Horizontal" VerticalOptions="Start" Padding="5,0,0,0">
|
||||
<StackLayout Orientation="Horizontal" HorizontalOptions="StartAndExpand">
|
||||
<StackLayout.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="RetourMainMenu"/>
|
||||
</StackLayout.GestureRecognizers>
|
||||
<Image Source="chevron_left.png">
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
<Label VerticalTextAlignment="Center" Text="Mes livres" FontAttributes="Bold" TextColor="{StaticResource Primary}" FontSize="15" Margin="5,0,0,0"/>
|
||||
</StackLayout>
|
||||
<Label Text="Auteur" FontAttributes="Bold" FontSize="18" VerticalTextAlignment="Center" HorizontalOptions="CenterAndExpand"/>
|
||||
<ImageButton x:Name="imageArrows" WidthRequest="25" HeightRequest="25" HorizontalOptions="EndAndExpand" Scale="0.6" Source="arrows.png">
|
||||
<ImageButton.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
|
||||
</ImageButton.Behaviors>
|
||||
</ImageButton>
|
||||
</StackLayout>
|
||||
<Line BackgroundColor="#E6E6E6"/>
|
||||
|
||||
</StackLayout>
|
||||
|
||||
|
||||
<SearchBar VerticalOptions="Start" Grid.Row="1" x:Name="searchBar"
|
||||
Placeholder="Rechercher"
|
||||
FontSize="16"
|
||||
BackgroundColor="White"
|
||||
CancelButtonColor="Grey"
|
||||
PlaceholderColor="#C7C7CC"/>
|
||||
|
||||
<ScrollView Grid.Row="2">
|
||||
<StackLayout>
|
||||
<local:Filtrage Dataname="Alain Damasio" Margin="0,0,0,5" NumberData="2"/>
|
||||
<Line BackgroundColor="#E6E6E6" Margin="60,0,0,0"/>
|
||||
<local:Filtrage Dataname="Cixin Lui" Margin="0,0,0,5" NumberData="3"/>
|
||||
<Line BackgroundColor="#E6E6E6" Margin="60,0,0,0"/>
|
||||
<local:Filtrage Dataname="Daniel Pennac" Margin="0,0,0,5" NumberData="2"/>
|
||||
<Line BackgroundColor="#E6E6E6" Margin="60,0,0,0"/>
|
||||
<local:Filtrage Dataname="Evgenij Ivanovic Zamâtin" Margin="0,0,0,5" NumberData="1"/>
|
||||
<Line BackgroundColor="#E6E6E6" Margin="60,0,0,0"/>
|
||||
<local:Filtrage Dataname="Frank Herbert" Margin="0,0,0,5" NumberData="6"/>
|
||||
<Line BackgroundColor="#E6E6E6" Margin="60,0,0,0"/>
|
||||
<local:Filtrage Dataname="Herbert George Wells" Margin="0,0,0,5" NumberData="3"/>
|
||||
<Line BackgroundColor="#E6E6E6" Margin="60,0,0,0"/>
|
||||
<local:Filtrage Dataname="James S. A. Corey" Margin="0,0,0,5" NumberData="6"/>
|
||||
<Line BackgroundColor="#E6E6E6" Margin="60,0,0,0"/>
|
||||
<local:Filtrage Dataname="James Tynion" Margin="0,0,0,5" NumberData="1"/>
|
||||
<Line BackgroundColor="#E6E6E6" Margin="60,0,0,0"/>
|
||||
<local:Filtrage Dataname="James Tynion (IV)" Margin="0,0,0,5" NumberData="1"/>
|
||||
<Line BackgroundColor="#E6E6E6" Margin="60,0,0,0"/>
|
||||
<local:Filtrage Dataname="Ken Kesey" Margin="0,0,0,5" NumberData="1"/>
|
||||
<Line BackgroundColor="#E6E6E6" Margin="60,0,0,0"/>
|
||||
<local:Filtrage Dataname="Ken Liu" Margin="0,0,0,5" NumberData="1"/>
|
||||
<Line BackgroundColor="#E6E6E6" Margin="60,0,0,0"/>
|
||||
</StackLayout>
|
||||
</ScrollView>
|
||||
</Grid>
|
||||
</ContentPage>
|
@ -1,108 +0,0 @@
|
||||
<?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"
|
||||
x:Class="PocketBook.BookDetail"
|
||||
xmlns:local="clr-namespace:PocketBook"
|
||||
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit">
|
||||
<Grid RowDefinitions="auto, *">
|
||||
|
||||
<StackLayout Orientation="Vertical">
|
||||
<StackLayout Grid.Row="0" Orientation="Horizontal" BackgroundColor="#F2F1F6" Padding="0,10,60,20">
|
||||
|
||||
<StackLayout.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="RetourMainMenu"/>
|
||||
</StackLayout.GestureRecognizers>
|
||||
<Image Source="chevron_left.png" Margin="5,0,0,0" HorizontalOptions="Start">
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
<Label VerticalTextAlignment="Center" Text="Tous" FontAttributes="Bold" TextColor="{StaticResource Primary}" FontSize="15" Margin="5,0,0,0"/>
|
||||
<Label Text="Détails du livre" FontAttributes="Bold" FontSize="18" VerticalTextAlignment="Center" HorizontalOptions="CenterAndExpand"/>
|
||||
</StackLayout>
|
||||
<Line BackgroundColor="#E6E6E6"/>
|
||||
</StackLayout>
|
||||
|
||||
|
||||
<ScrollView Grid.Row="1">
|
||||
|
||||
|
||||
<StackLayout>
|
||||
|
||||
<StackLayout Orientation="Horizontal" Margin="15,0,0,20">
|
||||
|
||||
<Image x:Name="bookImage" Source="buveurencre.jpg" Margin="0,0,10,0" WidthRequest="90" HeightRequest="160"/>
|
||||
|
||||
<StackLayout Orientation="Vertical">
|
||||
<Label x:Name="titreBook" FontAttributes="Bold" Margin="0,25,0,0"/>
|
||||
<Label Text="★★★★★" TextColor="#D1D1D1" Margin="0,90,0,0"/>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
<StackLayout Margin="15,0,0,0">
|
||||
<Line BackgroundColor="#D0D0D2" />
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label Text="Infos en ligne" FontSize="20" HorizontalOptions="StartAndExpand" Margin="10,10,0,10"/>
|
||||
<Image Source="chevron_right.png" HorizontalOptions="Start" Scale="0.6"/>
|
||||
</StackLayout>
|
||||
<Line BackgroundColor="#D0D0D2" />
|
||||
<StackLayout Margin="10,10,0,10">
|
||||
<Label Text="Auteur" FontSize="16" FontAttributes="Bold"/>
|
||||
<Label x:Name="bookAuteur" TextColor="#9D9D9D" FontSize="20" Margin="0,10,0,0"/>
|
||||
</StackLayout>
|
||||
<Line BackgroundColor="#D0D0D2" />
|
||||
<StackLayout Margin="10,10,0,10">
|
||||
<Label Text="Maison d'édition" FontSize="16" FontAttributes="Bold"/>
|
||||
<Label x:Name="bookEdition" TextColor="#9D9D9D" FontSize="20" Margin="0,10,0,0"/>
|
||||
</StackLayout>
|
||||
<Line BackgroundColor="#D0D0D2" />
|
||||
<StackLayout Margin="10,10,0,10">
|
||||
<Label Text="Résumé" FontSize="16" FontAttributes="Bold"/>
|
||||
<Label x:Name="bookResume" TextColor="#9D9D9D" FontSize="13" Text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sodales viverra justo, nec rutrum ligula elementum vitae. Suspendisse sit amet mi nec nulla pretium vulputate. Nam pretium volutpat ante, at viverra ex elementum quis. Pellentesque egestas nisl ac enim sollicitudin blandit. Mauris id scelerisque augue. Curabitur dui nibh, convallis quis sagittis eu, pretium vel erat. Sed ut aliquet mi. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vestibulum eget lacus quis nisl auctor semper. Vestibulum feugiat ut tortor vel ultrices.
|
||||
|
||||
Curabitur tempus erat nec sapien aliquam venenatis. In ornare odio in lacus ornare finibus. Maecenas semper nulla non tortor gravida tincidunt ut ut arcu. Sed magna sem, semper quis justo vitae, lacinia laoreet ex. Curabitur at mauris a velit pharetra fringilla commodo non elit. Quisque sollicitudin, ipsum id dapibus consectetur, sapien tortor mattis lectus, vitae tempor nisl nisl sed ipsum. In in orci nec odio hendrerit posuere a vel libero." Margin="0,10,15,0"/>
|
||||
</StackLayout>
|
||||
<Line BackgroundColor="#D0D0D2" />
|
||||
<StackLayout Margin="0,10,0,0">
|
||||
<Label Text="Détails" FontSize="14" Margin="10,0,0,5" FontAttributes="Bold"/>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label Text="Nombre de pages" TextColor="#9D9D9D" Margin="10,0,0,5" FontSize="18"/>
|
||||
<Label FontSize="18" x:Name="bookNbPages" TextColor="#9D9D9D" HorizontalOptions="EndAndExpand" Margin="10,0,15,0"/>
|
||||
</StackLayout>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label Text="Langue" TextColor="#9D9D9D" Margin="10,0,0,5" FontSize="18"/>
|
||||
<Label x:Name="bookLangue" FontSize="18" TextColor="#9D9D9D" HorizontalOptions="EndAndExpand" Margin="10,0,15,0"/>
|
||||
</StackLayout>
|
||||
<StackLayout Orientation="Horizontal" Margin="10,0,0,10">
|
||||
<Label Text="ISBN" TextColor="#9D9D9D" FontSize="18"/>
|
||||
<Label x:Name="bookISBN" TextColor="#9D9D9D" FontSize="18" HorizontalOptions="EndAndExpand" Margin="0,0,15,0"/>
|
||||
</StackLayout>
|
||||
<Line BackgroundColor="#D0D0D2"/>
|
||||
<Label Text="Statut de lecture" FontSize="14" Margin="10,10,0,5" FontAttributes="Bold"/>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label Text="Statut" TextColor="#9D9D9D" Margin="10,0,0,5" FontSize="18"/>
|
||||
<Label x:Name="bookStatus" TextColor="#9D9D9D" FontSize="18" HorizontalOptions="EndAndExpand" Margin="0,0,15,0"/>
|
||||
</StackLayout>
|
||||
<Line BackgroundColor="#D0D0D2"/>
|
||||
<Label Text="Bibliothèque" FontSize="14" Margin="10,10,0,5" FontAttributes="Bold"/>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label Text="Ajouté le" TextColor="#9D9D9D" Margin="10,0,0,10" FontSize="18"/>
|
||||
<Label x:Name="bookAdd" TextColor="#9D9D9D" FontSize="18" HorizontalOptions="EndAndExpand" Margin="0,0,15,0"/>
|
||||
</StackLayout>
|
||||
<Line BackgroundColor="#D0D0D2"/>
|
||||
<StackLayout Padding="50"/>
|
||||
<Line BackgroundColor="#D0D0D2"/>
|
||||
<local:BookChange PropertyName="Déplacer le livre" ImageName="folder.png"/>
|
||||
<Line BackgroundColor="#D0D0D2"/>
|
||||
<local:BookChange PropertyName="Ajouter à la liste à lire plus tard" ImageName="plus_round.png"/>
|
||||
<Line BackgroundColor="#D0D0D2"/>
|
||||
<local:BookChange PropertyName="Changer le statut de lecture" ImageName="eyeglasses.png"/>
|
||||
<Line BackgroundColor="#D0D0D2"/>
|
||||
<local:BookChange PropertyName="Prêter le livre" ImageName="person.png"/>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
</ScrollView>
|
||||
</Grid>
|
||||
</ContentPage>
|
||||
|
||||
|
@ -1,43 +0,0 @@
|
||||
<?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"
|
||||
x:Class="PocketBook.ContentViewBook"
|
||||
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit">
|
||||
<VerticalStackLayout Margin="15,0,0,0">
|
||||
<StackLayout Orientation="Horizontal" Margin="0,5,0,0">
|
||||
<Image x:Name="bookImage" Margin="0,0,10,0" WidthRequest="75" HeightRequest="110"/>
|
||||
<StackLayout Orientation="Vertical">
|
||||
<Label x:Name="bookName" FontAttributes="Bold"/>
|
||||
<Label x:Name="autorName" FontSize="12"/>
|
||||
<Label x:Name="bookStatus" FontSize="12" TextColor="#AFAFAF"/>
|
||||
<StackLayout Orientation="Horizontal" Margin="0,30,0,0">
|
||||
<Image Source="star.png" WidthRequest="20" HeightRequest="20">
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="#E6E6E6"/>
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
<Image Source="star.png" WidthRequest="20" HeightRequest="20">
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="#E6E6E6"/>
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
<Image Source="star.png" WidthRequest="20" HeightRequest="20">
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="#E6E6E6"/>
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
<Image Source="star.png" WidthRequest="20" HeightRequest="20">
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="#E6E6E6"/>
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
<Image Source="star.png" WidthRequest="20" HeightRequest="20">
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="#E6E6E6"/>
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
</VerticalStackLayout>
|
||||
</ContentView>
|
@ -1,66 +0,0 @@
|
||||
<?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:PocketBook"
|
||||
x:Class="PocketBook.MainPage">
|
||||
|
||||
<ScrollView>
|
||||
<VerticalStackLayout>
|
||||
<StackLayout Orientation="Horizontal" Padding="10,0">
|
||||
<Label VerticalTextAlignment="Center" Text="Modifier" TextColor="{StaticResource Primary}" FontSize="15"/>
|
||||
<Label VerticalTextAlignment="Center" HorizontalOptions="EndAndExpand" Text="+" TextColor="{StaticResource Primary}" FontSize="30" />
|
||||
</StackLayout>
|
||||
<Label Padding="15,0,0,0" Text="Mes Livres" FontSize="38" FontAttributes="Bold" Margin="0,0,0,10"/>
|
||||
<Line BackgroundColor="#E6E6E6"/>
|
||||
<StackLayout Background="#F8F8F8">
|
||||
<local:ContentViewFilter FilterImageName="tray_second_fill.png"
|
||||
FilterName="Tous"
|
||||
FilterNum="45">
|
||||
<local:ContentViewFilter.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="OnContentViewFilterTappedTous"/>
|
||||
</local:ContentViewFilter.GestureRecognizers>
|
||||
</local:ContentViewFilter>
|
||||
<Line BackgroundColor="#E6E6E6" Margin="25,0,0,0"/>
|
||||
<local:ContentViewFilter FilterImageName="person_badge_clock_fill.png"
|
||||
FilterName="En prêt"
|
||||
FilterNum="1"/>
|
||||
<Line BackgroundColor="#E6E6E6" Margin="25,0,0,0"/>
|
||||
<local:ContentViewFilter FilterImageName="arrow_forward.png"
|
||||
FilterName="A lire plus tard"/>
|
||||
<Line BackgroundColor="#E6E6E6" Margin="25,0,0,0"/>
|
||||
<local:ContentViewFilter FilterImageName="eyeglasses.png"
|
||||
FilterName="Statut de lecture"/>
|
||||
<Line BackgroundColor="#E6E6E6" Margin="25,0,0,0"/>
|
||||
<local:ContentViewFilter FilterImageName="heart_fill.png"
|
||||
FilterName="Favoris"/>
|
||||
</StackLayout>
|
||||
<Line BackgroundColor="#E6E6E6"/>
|
||||
<Label Text="Filtres" FontSize="20" Margin="20,20,0,20" FontAttributes="Bold"/>
|
||||
<Line BackgroundColor="#E6E6E6"/>
|
||||
<StackLayout Background="#F8F8F8">
|
||||
|
||||
<local:ContentViewFilter FilterImageName="person_fill.png"
|
||||
FilterName="Auteur">
|
||||
<local:ContentViewFilter.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="OnContentViewFilterTappedAuteur"/>
|
||||
</local:ContentViewFilter.GestureRecognizers>
|
||||
</local:ContentViewFilter>
|
||||
<Line BackgroundColor="#E6E6E6" Margin="25,0,0,0"/>
|
||||
<local:ContentViewFilter FilterImageName="calendar.png"
|
||||
FilterName="Date de publication">
|
||||
<local:ContentViewFilter.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="OnContentViewFilterTappedDate"/>
|
||||
</local:ContentViewFilter.GestureRecognizers>
|
||||
|
||||
</local:ContentViewFilter>
|
||||
<Line BackgroundColor="#E6E6E6" Margin="25,0,0,0"/>
|
||||
<local:ContentViewFilter FilterImageName="sparkles.png"
|
||||
FilterName="Note"/>
|
||||
</StackLayout>
|
||||
<Line BackgroundColor="#E6E6E6"/>
|
||||
|
||||
</VerticalStackLayout>
|
||||
|
||||
</ScrollView>
|
||||
|
||||
</ContentPage>
|
@ -0,0 +1,61 @@
|
||||
<?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"
|
||||
x:Class="PocketBook.Auteur"
|
||||
Title="Auteur"
|
||||
xmlns:local="clr-namespace:PocketBook"
|
||||
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit">
|
||||
|
||||
<Grid RowDefinitions="auto,auto,*">
|
||||
<StackLayout Orientation="Vertical">
|
||||
<StackLayout Orientation="Horizontal" VerticalOptions="Start" Padding="5,10,0,10">
|
||||
<StackLayout Orientation="Horizontal" HorizontalOptions="StartAndExpand">
|
||||
<StackLayout.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="RetourMainMenu" />
|
||||
</StackLayout.GestureRecognizers>
|
||||
<Image Source="chevron_left.png">
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}" />
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
<Label Style="{StaticResource TitleLabelLeftStyle}" Text="Mes livres" />
|
||||
</StackLayout>
|
||||
<Label Style="{StaticResource TitleLabelStyle}" Text="Auteur" />
|
||||
<ImageButton x:Name="imageArrows" Style="{StaticResource RightIconToolBar}" Source="arrows.png">
|
||||
<ImageButton.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
|
||||
</ImageButton.Behaviors>
|
||||
</ImageButton>
|
||||
</StackLayout>
|
||||
<Line BackgroundColor="{StaticResource LineColorAutor}" />
|
||||
</StackLayout>
|
||||
|
||||
<SearchBar Grid.Row="1" x:Name="searchBar" Style="{StaticResource SearchBarStyle}" Placeholder="Rechercher" />
|
||||
|
||||
<ScrollView Grid.Row="2">
|
||||
<StackLayout>
|
||||
<local:Filtrage Dataname="Alain Damasio" Margin="0,0,0,5" NumberData="2"/>
|
||||
<Line Style="{StaticResource LineStyle}"/>
|
||||
<local:Filtrage Dataname="Cixin Lui" Margin="0,0,0,5" NumberData="3"/>
|
||||
<Line Style="{StaticResource LineStyle}"/>
|
||||
<local:Filtrage Dataname="Daniel Pennac" Margin="0,0,0,5" NumberData="2"/>
|
||||
<Line Style="{StaticResource LineStyle}"/>
|
||||
<local:Filtrage Dataname="Evgenij Ivanovic Zamâtin" Margin="0,0,0,5" NumberData="1"/>
|
||||
<Line Style="{StaticResource LineStyle}"/>
|
||||
<local:Filtrage Dataname="Frank Herbert" Margin="0,0,0,5" NumberData="6"/>
|
||||
<Line Style="{StaticResource LineStyle}"/>
|
||||
<local:Filtrage Dataname="Herbert George Wells" Margin="0,0,0,5" NumberData="3"/>
|
||||
<Line Style="{StaticResource LineStyle}"/>
|
||||
<local:Filtrage Dataname="James S. A. Corey" Margin="0,0,0,5" NumberData="6"/>
|
||||
<Line Style="{StaticResource LineStyle}"/>
|
||||
<local:Filtrage Dataname="James Tynion" Margin="0,0,0,5" NumberData="1"/>
|
||||
<Line Style="{StaticResource LineStyle}"/>
|
||||
<local:Filtrage Dataname="James Tynion (IV)" Margin="0,0,0,5" NumberData="1"/>
|
||||
<Line Style="{StaticResource LineStyle}"/>
|
||||
<local:Filtrage Dataname="Ken Kesey" Margin="0,0,0,5" NumberData="1"/>
|
||||
<Line Style="{StaticResource LineStyle}"/>
|
||||
<local:Filtrage Dataname="Ken Liu" Margin="0,0,0,5" NumberData="1"/>
|
||||
</StackLayout>
|
||||
</ScrollView>
|
||||
</Grid>
|
||||
</ContentPage>
|
@ -0,0 +1,105 @@
|
||||
<?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"
|
||||
x:Class="PocketBook.BookDetail"
|
||||
xmlns:local="clr-namespace:PocketBook"
|
||||
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit">
|
||||
<Grid RowDefinitions="auto, *">
|
||||
|
||||
<StackLayout Orientation="Vertical">
|
||||
<StackLayout Grid.Row="0" Orientation="Horizontal" BackgroundColor="{StaticResource TopBackgroundGrey}" Padding="0,10,60,20">
|
||||
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<StackLayout.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="RetourMainMenu"/>
|
||||
</StackLayout.GestureRecognizers>
|
||||
<Image Source="chevron_left.png" Margin="5,0,0,0" HorizontalOptions="Start">
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
<Label Style="{StaticResource TitleLabelLeftStyle}" Text="Tous"/>
|
||||
</StackLayout>
|
||||
|
||||
<Label Text="Détails du livre" Style="{StaticResource TitleLabelStyleDetailBook}"/>
|
||||
</StackLayout>
|
||||
<Line BackgroundColor="{StaticResource LineColor1}"/>
|
||||
</StackLayout>
|
||||
|
||||
|
||||
<ScrollView Grid.Row="1">
|
||||
<StackLayout>
|
||||
<StackLayout Orientation="Horizontal" Margin="15,0,0,20">
|
||||
<Image x:Name="bookImage" Source="buveurencre.jpg" Margin="0,0,10,0" WidthRequest="90" HeightRequest="160"/>
|
||||
<StackLayout Orientation="Vertical">
|
||||
<Label x:Name="titreBook" FontAttributes="Bold" FontSize="20" Margin="0,15,0,0"/>
|
||||
<local:Stars NbStars="1" Margin="0,90,0,0"/>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
<StackLayout Margin="15,0,0,0">
|
||||
<Line BackgroundColor="{StaticResource LineColor1}"/>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label Text="Infos en ligne" FontSize="20" HorizontalOptions="StartAndExpand" Margin="10,10,0,10"/>
|
||||
<Image Source="chevron_right.png" HorizontalOptions="Start" Scale="0.6"/>
|
||||
</StackLayout>
|
||||
<Line BackgroundColor="{StaticResource LineColor1}"/>
|
||||
<StackLayout >
|
||||
<Label Text="Auteur" Style="{StaticResource LabelStyleDetailBook3}"/>
|
||||
<Label x:Name="bookAuteur" Style="{StaticResource LabelStyleDetailBook4}"/>
|
||||
</StackLayout>
|
||||
<Line BackgroundColor="{StaticResource LineColor1}"/>
|
||||
<StackLayout>
|
||||
<Label Text="Maison d'édition" Style="{StaticResource LabelStyleDetailBook3}"/>
|
||||
<Label x:Name="bookEdition" Style="{StaticResource LabelStyleDetailBook4}"/>
|
||||
</StackLayout>
|
||||
<Line BackgroundColor="{StaticResource LineColor1}"/>
|
||||
<StackLayout Margin="0,0,0,10">
|
||||
<Label Text="Résumé" Style="{StaticResource LabelStyleDetailBook3}"/>
|
||||
<Label x:Name="bookResume" TextColor="#9D9D9D" Margin="10,10,20,0" FontSize="13" Text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sodales viverra justo, nec rutrum ligula elementum vitae. Suspendisse sit amet mi nec nulla pretium vulputate. Nam pretium volutpat ante, at viverra ex elementum quis. Pellentesque egestas nisl ac enim sollicitudin blandit. Mauris id scelerisque augue. Curabitur dui nibh, convallis quis sagittis eu, pretium vel erat. Sed ut aliquet mi. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vestibulum eget lacus quis nisl auctor semper. Vestibulum feugiat ut tortor vel ultrices.
|
||||
Curabitur tempus erat nec sapien aliquam venenatis. In ornare odio in lacus ornare finibus. Maecenas semper nulla non tortor gravida tincidunt ut ut arcu. Sed magna sem, semper quis justo vitae, lacinia laoreet ex. Curabitur at mauris a velit pharetra fringilla commodo non elit. Quisque sollicitudin, ipsum id dapibus consectetur, sapien tortor mattis lectus, vitae tempor nisl nisl sed ipsum. In in orci nec odio hendrerit posuere a vel libero."/>
|
||||
</StackLayout>
|
||||
<Line BackgroundColor="{StaticResource LineColor1}"/>
|
||||
<StackLayout>
|
||||
<Label Text="Détails" Style="{StaticResource LabelStyleDetailBook3}"/>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label Text="Nombre de pages" Style="{StaticResource LabelStyleDetailBook4}"/>
|
||||
<Label x:Name="bookNbPages" Style="{StaticResource LabelStyleDetailBook2}"/>
|
||||
</StackLayout>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label Text="Langue" Style="{StaticResource LabelStyleDetailBook4}"/>
|
||||
<Label x:Name="bookLangue" Style="{StaticResource LabelStyleDetailBook2}"/>
|
||||
</StackLayout>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label Text="ISBN" Style="{StaticResource LabelStyleDetailBook4}"/>
|
||||
<Label x:Name="bookISBN" Style="{StaticResource LabelStyleDetailBook2}"/>
|
||||
</StackLayout>
|
||||
<Line BackgroundColor="{StaticResource LineColor1}"/>
|
||||
<Label Text="Statut de lecture" Style="{StaticResource LabelStyleDetailBook3}"/>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label Text="Statut" Style="{StaticResource LabelStyleDetailBook4}"/>
|
||||
<Label x:Name="bookStatus" Style="{StaticResource LabelStyleDetailBook2}"/>
|
||||
</StackLayout>
|
||||
<Line BackgroundColor="{StaticResource LineColor1}"/>
|
||||
<Label Text="Bibliothèque" Style="{StaticResource LabelStyleDetailBook3}"/>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label Text="Ajouté le" Style="{StaticResource LabelStyleDetailBook4}"/>
|
||||
<Label x:Name="bookAdd" Style="{StaticResource LabelStyleDetailBook2}"/>
|
||||
</StackLayout>
|
||||
<Line BackgroundColor="{StaticResource LineColor1}"/>
|
||||
<StackLayout Padding="50"/>
|
||||
<Line BackgroundColor="{StaticResource LineColor1}"/>
|
||||
<local:BookChange PropertyName="Déplacer le livre" ImageName="folder.png"/>
|
||||
<Line BackgroundColor="{StaticResource LineColor1}"/>
|
||||
<local:BookChange PropertyName="Ajouter à la liste à lire plus tard" ImageName="plus_round.png"/>
|
||||
<Line BackgroundColor="{StaticResource LineColor1}"/>
|
||||
<local:BookChange PropertyName="Changer le statut de lecture" ImageName="eyeglasses.png"/>
|
||||
<Line BackgroundColor="{StaticResource LineColor1}"/>
|
||||
<local:BookChange PropertyName="Prêter le livre" ImageName="person.png"/>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
</ScrollView>
|
||||
</Grid>
|
||||
</ContentPage>
|
||||
|
||||
|
@ -0,0 +1,20 @@
|
||||
<?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"
|
||||
x:Class="PocketBook.ContentViewBook"
|
||||
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
||||
xmlns:local="clr-namespace:PocketBook">
|
||||
<VerticalStackLayout Margin="15,0,0,0">
|
||||
<StackLayout Orientation="Horizontal" Margin="0,5,0,0">
|
||||
<Image x:Name="bookImage" Margin="0,0,10,0" WidthRequest="75" HeightRequest="110"/>
|
||||
<StackLayout Orientation="Vertical">
|
||||
<Label x:Name="bookName" FontAttributes="Bold"/>
|
||||
<Label x:Name="autorName" FontSize="12"/>
|
||||
<Label x:Name="bookStatus" FontSize="12" TextColor="#AFAFAF"/>
|
||||
<StackLayout Orientation="Horizontal" Margin="0,30,0,0">
|
||||
<local:Stars NbStars="1" Margin="0,0,0,5"/>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
</VerticalStackLayout>
|
||||
</ContentView>
|
@ -0,0 +1,14 @@
|
||||
<?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"
|
||||
x:Class="PocketBook.Stars"
|
||||
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit">
|
||||
|
||||
<StackLayout Orientation="Horizontal" Margin="0,30,0,0" x:Name="StarsList">
|
||||
<Image Source="star.png" WidthRequest="20" HeightRequest="20"/>
|
||||
<Image Source="star.png" WidthRequest="20" HeightRequest="20"/>
|
||||
<Image Source="star.png" WidthRequest="20" HeightRequest="20"/>
|
||||
<Image Source="star.png" WidthRequest="20" HeightRequest="20"/>
|
||||
<Image Source="star.png" WidthRequest="20" HeightRequest="20"/>
|
||||
</StackLayout>
|
||||
</ContentView>
|
@ -0,0 +1,53 @@
|
||||
using CommunityToolkit.Maui.Behaviors;
|
||||
|
||||
namespace PocketBook;
|
||||
|
||||
public partial class Stars : ContentView
|
||||
{
|
||||
public static readonly BindableProperty NbStarsProperty =
|
||||
BindableProperty.Create(nameof(NbStars), typeof(int), typeof(Stars), defaultValue: 0, propertyChanged: OnNbStarsChanged);
|
||||
public int NbStars
|
||||
{
|
||||
get { return (int)GetValue(NbStarsProperty); }
|
||||
set { SetValue(NbStarsProperty, value); }
|
||||
}
|
||||
|
||||
public Stars()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private static void OnNbStarsChanged(BindableObject bindable, object oldValue, object newValue)
|
||||
{
|
||||
if (bindable is Stars stars)
|
||||
{
|
||||
stars.UpdateStars();
|
||||
}
|
||||
}
|
||||
|
||||
private void UpdateStars()
|
||||
{
|
||||
int z = 0;
|
||||
|
||||
var behaviorYellow = new IconTintColorBehavior
|
||||
{
|
||||
TintColor = Color.FromArgb("#FFFF00"),
|
||||
};
|
||||
|
||||
var behaviorGrey = new IconTintColorBehavior
|
||||
{
|
||||
TintColor = Color.FromArgb("#E6E6E6"),
|
||||
};
|
||||
|
||||
|
||||
foreach (Image i in StarsList.Children.Where(c => c is Image))
|
||||
{
|
||||
if (z < NbStars)
|
||||
{
|
||||
i.Behaviors.Add(behaviorYellow);
|
||||
z++;
|
||||
}
|
||||
else i.Behaviors.Add(behaviorGrey);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
<?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"
|
||||
x:Class="PocketBook.TitledAuthor">
|
||||
<StackLayout BackgroundColor="{StaticResource BackgroundMainPage}" Padding="5">
|
||||
<Label x:Name="nameText" TextColor="{StaticResource FontColor2}" FontAttributes="Bold" Margin="15,0,0,0" />
|
||||
</StackLayout>
|
||||
</ContentView>
|
@ -0,0 +1,20 @@
|
||||
namespace PocketBook;
|
||||
|
||||
public partial class TitledAuthor : ContentView
|
||||
{
|
||||
|
||||
public static readonly BindableProperty NameTextProperty =
|
||||
BindableProperty.Create(nameof(NameText), typeof(string), typeof(Filtrage), string.Empty);
|
||||
|
||||
public string NameText
|
||||
{
|
||||
get { return (string)GetValue(NameTextProperty); }
|
||||
set { SetValue(NameTextProperty, value); }
|
||||
}
|
||||
|
||||
public TitledAuthor()
|
||||
{
|
||||
InitializeComponent();
|
||||
nameText.SetBinding(Label.TextProperty, new Binding(nameof(NameText), source: this));
|
||||
}
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
<?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"
|
||||
x:Class="PocketBook.LaterPage"
|
||||
xmlns:local="clr-namespace:PocketBook"
|
||||
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">
|
||||
<StackLayout.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="RetourMainMenu"/>
|
||||
</StackLayout.GestureRecognizers>
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
<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"/>
|
||||
|
||||
</VerticalStackLayout>
|
||||
</ScrollView>
|
||||
</Grid>
|
||||
</ContentPage>
|
@ -0,0 +1,21 @@
|
||||
using CommunityToolkit.Maui.Views;
|
||||
|
||||
namespace PocketBook;
|
||||
|
||||
public partial class LaterPage : ContentPage
|
||||
{
|
||||
public LaterPage()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
|
||||
private async void RetourMainMenu(object sender, EventArgs e)
|
||||
{
|
||||
await Navigation.PopToRootAsync();
|
||||
}
|
||||
private void OnImageButtonClicked(object sender, EventArgs e)
|
||||
{
|
||||
this.ShowPopup(new AddBook());
|
||||
}
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
<?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"
|
||||
x:Class="PocketBook.LikePage"
|
||||
xmlns:local="clr-namespace:PocketBook"
|
||||
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit">
|
||||
|
||||
<Grid RowDefinitions="auto, *">
|
||||
|
||||
<VerticalStackLayout>
|
||||
<StackLayout Orientation="Horizontal" Padding="5,10,0,10" >
|
||||
<StackLayout Orientation="Horizontal" HorizontalOptions="StartAndExpand">
|
||||
<StackLayout.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="RetourMainMenu"/>
|
||||
</StackLayout.GestureRecognizers>
|
||||
<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="Favoris" Style="{StaticResource TitleLabelStyle}"/>
|
||||
<StackLayout HorizontalOptions="EndAndExpand" Orientation="Horizontal">
|
||||
<ImageButton Style="{StaticResource RightIconToolBar2}" Source="plus.png">
|
||||
<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"/>
|
||||
|
||||
</VerticalStackLayout>
|
||||
|
||||
|
||||
|
||||
<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"/>
|
||||
|
||||
</VerticalStackLayout>
|
||||
</ScrollView>
|
||||
</Grid>
|
||||
</ContentPage>
|
@ -0,0 +1,21 @@
|
||||
using CommunityToolkit.Maui.Views;
|
||||
|
||||
namespace PocketBook;
|
||||
|
||||
public partial class LikePage : ContentPage
|
||||
{
|
||||
public LikePage()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
|
||||
private async void RetourMainMenu(object sender, EventArgs e)
|
||||
{
|
||||
await Navigation.PopToRootAsync();
|
||||
}
|
||||
private void OnImageButtonClicked(object sender, EventArgs e)
|
||||
{
|
||||
this.ShowPopup(new AddBook());
|
||||
}
|
||||
}
|
@ -0,0 +1,95 @@
|
||||
<?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:PocketBook"
|
||||
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
||||
x:Class="PocketBook.MainPage">
|
||||
|
||||
<ScrollView>
|
||||
<VerticalStackLayout>
|
||||
<StackLayout Orientation="Horizontal" Padding="10">
|
||||
<Label Style="{StaticResource TitleLabelLeftStyleMainPage}" Text="Modifier"/>
|
||||
<Image Style="{StaticResource RightIconToolBarMainPage}" Scale="0.7" Source="plus.png">
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
</StackLayout>
|
||||
<Label Style="{StaticResource TitleStyleMainPage}" Text="Mes Livres"/>
|
||||
<Line BackgroundColor="{StaticResource LineColor1}"/>
|
||||
<StackLayout Background="{StaticResource BackgroundMainPage}">
|
||||
|
||||
<local:ContentViewFilter FilterImageName="tray_second_fill.png" FilterName="Tous" FilterNum="45">
|
||||
<local:ContentViewFilter.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="OnContentViewFilterTappedTous"/>
|
||||
</local:ContentViewFilter.GestureRecognizers>
|
||||
</local:ContentViewFilter>
|
||||
|
||||
<Line Style="{StaticResource LineStyle2}"/>
|
||||
|
||||
<local:ContentViewFilter FilterImageName="person_badge_clock_fill.png" FilterName="En prêt" FilterNum="1">
|
||||
<local:ContentViewFilter.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="OnContentViewFilterTappedShare"/>
|
||||
</local:ContentViewFilter.GestureRecognizers>
|
||||
</local:ContentViewFilter>
|
||||
|
||||
<Line Style="{StaticResource LineStyle2}"/>
|
||||
|
||||
<local:ContentViewFilter FilterImageName="arrow_forward.png"
|
||||
FilterName="A lire plus tard">
|
||||
<local:ContentViewFilter.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="OnContentViewFilterTappedLater"/>
|
||||
</local:ContentViewFilter.GestureRecognizers>
|
||||
</local:ContentViewFilter>
|
||||
<Line Style="{StaticResource LineStyle2}"/>
|
||||
|
||||
<local:ContentViewFilter FilterImageName="eyeglasses.png"
|
||||
FilterName="Statut de lecture">
|
||||
|
||||
<local:ContentViewFilter.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="OnContentViewFilterTappedStatus"/>
|
||||
</local:ContentViewFilter.GestureRecognizers>
|
||||
</local:ContentViewFilter>
|
||||
<Line Style="{StaticResource LineStyle2}"/>
|
||||
<local:ContentViewFilter FilterImageName="heart_fill.png"
|
||||
FilterName="Favoris">
|
||||
<local:ContentViewFilter.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="OnContentViewFilterTappedLike"/>
|
||||
</local:ContentViewFilter.GestureRecognizers>
|
||||
</local:ContentViewFilter>
|
||||
</StackLayout>
|
||||
<Line BackgroundColor="{StaticResource LineColor1}"/>
|
||||
<Label Text="Filtres" Style="{StaticResource SecondStyleMainPage}"/>
|
||||
<Line BackgroundColor="{StaticResource LineColor1}"/>
|
||||
<StackLayout Background="{StaticResource BackgroundMainPage}">
|
||||
|
||||
<local:ContentViewFilter FilterImageName="person_fill.png"
|
||||
FilterName="Auteur">
|
||||
<local:ContentViewFilter.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="OnContentViewFilterTappedAuteur"/>
|
||||
</local:ContentViewFilter.GestureRecognizers>
|
||||
</local:ContentViewFilter>
|
||||
|
||||
<Line Style="{StaticResource LineStyle2}"/>
|
||||
<local:ContentViewFilter FilterImageName="cal.png"
|
||||
FilterName="Date de publication">
|
||||
<local:ContentViewFilter.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="OnContentViewFilterTappedDate"/>
|
||||
</local:ContentViewFilter.GestureRecognizers>
|
||||
|
||||
</local:ContentViewFilter>
|
||||
<Line Style="{StaticResource LineStyle2}"/>
|
||||
<local:ContentViewFilter FilterImageName="sparkles.png"
|
||||
FilterName="Note">
|
||||
<local:ContentViewFilter.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="OnContentViewFilterTappedMark"/>
|
||||
</local:ContentViewFilter.GestureRecognizers>
|
||||
</local:ContentViewFilter>
|
||||
</StackLayout>
|
||||
<Line BackgroundColor="{StaticResource LineColor1}"/>
|
||||
|
||||
</VerticalStackLayout>
|
||||
|
||||
</ScrollView>
|
||||
|
||||
</ContentPage>
|
@ -0,0 +1,47 @@
|
||||
<?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"
|
||||
x:Class="PocketBook.MarkPage"
|
||||
xmlns:local="clr-namespace:PocketBook"
|
||||
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit">
|
||||
|
||||
<Grid RowDefinitions="auto, *">
|
||||
<StackLayout Orientation="Vertical">
|
||||
<StackLayout Orientation="Horizontal" VerticalOptions="Start" Padding="5,10,0,10">
|
||||
<StackLayout Orientation="Horizontal" HorizontalOptions="StartAndExpand">
|
||||
<StackLayout.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="RetourMainMenu"/>
|
||||
</StackLayout.GestureRecognizers>
|
||||
<Image Source="chevron_left.png">
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
</StackLayout>
|
||||
<Label Text="Note" Style="{StaticResource TitleLabelStyle}"/>
|
||||
<ImageButton x:Name="imageArrows" Style="{StaticResource RightIconToolBar}" Source="arrows.png">
|
||||
<ImageButton.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
|
||||
</ImageButton.Behaviors>
|
||||
</ImageButton>
|
||||
</StackLayout>
|
||||
<Line BackgroundColor="{StaticResource LineColor1}"/>
|
||||
|
||||
</StackLayout>
|
||||
|
||||
<ScrollView Grid.Row="2">
|
||||
<StackLayout>
|
||||
<local:Filtrage Dataname="★" Margin="0,0,0,5" NumberData="1"/>
|
||||
<Line Style="{StaticResource LineStyle}"/>
|
||||
<local:Filtrage Dataname="★★" Margin="0,0,0,5" NumberData="6"/>
|
||||
<Line Style="{StaticResource LineStyle}"/>
|
||||
<local:Filtrage Dataname="★★★" Margin="0,0,0,5" NumberData="6"/>
|
||||
<Line Style="{StaticResource LineStyle}"/>
|
||||
<local:Filtrage Dataname="★★★★" Margin="0,0,0,5" NumberData="3"/>
|
||||
<Line Style="{StaticResource LineStyle}"/>
|
||||
<local:Filtrage Dataname="★★★★★" Margin="0,0,0,5" NumberData="2"/>
|
||||
</StackLayout>
|
||||
|
||||
</ScrollView>
|
||||
</Grid>
|
||||
</ContentPage>
|
@ -0,0 +1,21 @@
|
||||
using CommunityToolkit.Maui.Views;
|
||||
|
||||
namespace PocketBook;
|
||||
|
||||
public partial class MarkPage : ContentPage
|
||||
{
|
||||
public MarkPage()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
|
||||
private async void RetourMainMenu(object sender, EventArgs e)
|
||||
{
|
||||
await Navigation.PopToRootAsync();
|
||||
}
|
||||
private void OnImageButtonClicked(object sender, EventArgs e)
|
||||
{
|
||||
this.ShowPopup(new AddBook());
|
||||
}
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
<?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"
|
||||
x:Class="PocketBook.SharePage"
|
||||
Title="SharePage"
|
||||
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
||||
xmlns:local="clr-namespace:PocketBook">
|
||||
|
||||
<Grid RowDefinitions="auto, *">
|
||||
|
||||
<StackLayout Orientation="Vertical">
|
||||
<StackLayout Orientation="Horizontal" Padding="5,10,0,10" >
|
||||
<StackLayout Orientation="Horizontal" HorizontalOptions="StartAndExpand">
|
||||
<StackLayout.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="RetourMainMenu"/>
|
||||
</StackLayout.GestureRecognizers>
|
||||
<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="En prêt" Style="{StaticResource TitleLabelStyle}"/>
|
||||
<StackLayout HorizontalOptions="EndAndExpand" Orientation="Horizontal">
|
||||
<ImageButton Style="{StaticResource RightIconToolBar2}" Source="plus.png">
|
||||
<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>
|
||||
</StackLayout>
|
||||
|
||||
<ScrollView Grid.Row="1">
|
||||
<StackLayout>
|
||||
<local:TitledAuthor NameText="Antoine"/>
|
||||
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La forêt sombre" AutorName="Cixin Liu" BookStatus="Terminé"/>
|
||||
|
||||
|
||||
|
||||
<local:TitledAuthor NameText="Audrey Pouclet"/>
|
||||
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La forêt sombre" AutorName="Cixin Liu" BookStatus="Terminé"/>
|
||||
</StackLayout>
|
||||
</ScrollView>
|
||||
|
||||
</Grid>
|
||||
</ContentPage>
|
@ -0,0 +1,20 @@
|
||||
using CommunityToolkit.Maui.Views;
|
||||
|
||||
namespace PocketBook;
|
||||
|
||||
public partial class SharePage : ContentPage
|
||||
{
|
||||
public SharePage()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private async void RetourMainMenu(object sender, EventArgs e)
|
||||
{
|
||||
await Navigation.PopToRootAsync();
|
||||
}
|
||||
private void OnImageButtonClicked(object sender, EventArgs e)
|
||||
{
|
||||
this.ShowPopup(new AddBook());
|
||||
}
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
<?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"
|
||||
x:Class="PocketBook.StatutPage"
|
||||
xmlns:local="clr-namespace:PocketBook"
|
||||
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">
|
||||
<StackLayout.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="RetourMainMenu"/>
|
||||
</StackLayout.GestureRecognizers>
|
||||
<Image Source="chevron_left.png">
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
<Label Style="{StaticResource TitleLabelLeftStyle}" Text="Mes livres"/>
|
||||
</StackLayout>
|
||||
<Label Text="Statut de lecture" Style="{StaticResource TitleLabelStyle}"/>
|
||||
<StackLayout HorizontalOptions="EndAndExpand" Orientation="Horizontal">
|
||||
<ImageButton Style="{StaticResource RightIconToolBar2}" Source="plus.png">
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
<ScrollView Grid.Row="1">
|
||||
<VerticalStackLayout>
|
||||
<local:TitledAuthor NameText="Lu"/>
|
||||
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La horde du contrevent" AutorName="Alain Damasio" BookStatus="Lu"/>
|
||||
<Line Style="{StaticResource LineStyle3}"/>
|
||||
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La zone du dehors" AutorName="Alain Damasio" BookStatus="Lu"/>
|
||||
<local:TitledAuthor NameText="À lire"/>
|
||||
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="L'équateur d'Einstein" AutorName="Cixin Liu" BookStatus="À lire"/>
|
||||
<Line Style="{StaticResource LineStyle3}"/>
|
||||
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La forêt sombre" AutorName="Cixin Liu" BookStatus="À lire"/>
|
||||
<local:TitledAuthor NameText="Non lu"/>
|
||||
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="Le problème à trois corps" AutorName="Cixin Liu" BookStatus="Non lu"/>
|
||||
<Line Style="{StaticResource LineStyle3}"/>
|
||||
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="L'équateur d'Einstein" AutorName="Cixin Liu" BookStatus="Non lu"/>
|
||||
<Line Style="{StaticResource LineStyle3}"/>
|
||||
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La forêt sombre" AutorName="Cixin Liu" BookStatus="Non lu"/>
|
||||
<Line Style="{StaticResource LineStyle3}"/>
|
||||
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="Le problème à trois corps" AutorName="Cixin Liu" BookStatus="Non lu"/>
|
||||
</VerticalStackLayout>
|
||||
</ScrollView>
|
||||
</Grid>
|
||||
</ContentPage>
|
@ -0,0 +1,22 @@
|
||||
using CommunityToolkit.Maui.Views;
|
||||
|
||||
namespace PocketBook;
|
||||
|
||||
public partial class StatutPage : ContentPage
|
||||
{
|
||||
public StatutPage()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
|
||||
private async void RetourMainMenu(object sender, EventArgs e)
|
||||
{
|
||||
await Navigation.PopToRootAsync();
|
||||
}
|
||||
|
||||
private void OnImageButtonClicked(object sender, EventArgs e)
|
||||
{
|
||||
this.ShowPopup(new AddBook());
|
||||
}
|
||||
}
|
@ -0,0 +1,99 @@
|
||||
<?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:PocketBook"
|
||||
x:Class="PocketBook.TousPage"
|
||||
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">
|
||||
<StackLayout.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="RetourMainMenu"/>
|
||||
</StackLayout.GestureRecognizers>
|
||||
<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="Tous" Style="{StaticResource TitleLabelStyle}"/>
|
||||
<StackLayout HorizontalOptions="EndAndExpand" Orientation="Horizontal">
|
||||
<ImageButton Style="{StaticResource RightIconToolBar2}" Source="plus.png">
|
||||
<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="{StaticResource LineColor1}"/>
|
||||
|
||||
</StackLayout>
|
||||
|
||||
|
||||
|
||||
<ScrollView Grid.Row="1">
|
||||
<VerticalStackLayout>
|
||||
<local:TitledAuthor NameText="Alain Damasio"/>
|
||||
|
||||
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La horde du contrevent" AutorName="Alain Damasio" BookStatus="Non lu">
|
||||
<local:ContentViewBook.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="OnBookSelected"/>
|
||||
</local:ContentViewBook.GestureRecognizers>
|
||||
</local:ContentViewBook>
|
||||
<Line Style="{StaticResource LineStyle3}"/>
|
||||
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La zone du dehors" AutorName="Alain Damasio" BookStatus="Terminé">
|
||||
<local:ContentViewBook.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="OnBookSelected"/>
|
||||
</local:ContentViewBook.GestureRecognizers>
|
||||
</local:ContentViewBook>
|
||||
<local:TitledAuthor NameText="Cixin Lui"/>
|
||||
|
||||
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="L'équateur d'Einstein" AutorName="Cixin Liu" BookStatus="Terminé">
|
||||
<local:ContentViewBook.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="OnBookSelected"/>
|
||||
</local:ContentViewBook.GestureRecognizers>
|
||||
</local:ContentViewBook>
|
||||
<Line Style="{StaticResource LineStyle3}"/>
|
||||
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La forêt sombre" AutorName="Cixin Liu" BookStatus="Terminé">
|
||||
<local:ContentViewBook.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="OnBookSelected"/>
|
||||
</local:ContentViewBook.GestureRecognizers>
|
||||
</local:ContentViewBook>
|
||||
<Line Style="{StaticResource LineStyle3}"/>
|
||||
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="Le problème à trois corps" AutorName="Cixin Liu" BookStatus="Terminé">
|
||||
<local:ContentViewBook.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="OnBookSelected"/>
|
||||
</local:ContentViewBook.GestureRecognizers>
|
||||
</local:ContentViewBook>
|
||||
<Line Style="{StaticResource LineStyle3}"/>
|
||||
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="L'équateur d'Einstein" AutorName="Cixin Liu" BookStatus="Terminé">
|
||||
<local:ContentViewBook.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="OnBookSelected"/>
|
||||
</local:ContentViewBook.GestureRecognizers>
|
||||
</local:ContentViewBook>
|
||||
<Line Style="{StaticResource LineStyle3}"/>
|
||||
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La forêt sombre" AutorName="Cixin Liu" BookStatus="Terminé">
|
||||
<local:ContentViewBook.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="OnBookSelected"/>
|
||||
</local:ContentViewBook.GestureRecognizers>
|
||||
</local:ContentViewBook>
|
||||
<Line Style="{StaticResource LineStyle3}"/>
|
||||
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="Le problème à trois corps" AutorName="Cixin Liu" BookStatus="Terminé">
|
||||
<local:ContentViewBook.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="OnBookSelected"/>
|
||||
</local:ContentViewBook.GestureRecognizers>
|
||||
</local:ContentViewBook>
|
||||
</VerticalStackLayout>
|
||||
</ScrollView>
|
||||
</Grid>
|
||||
</ContentPage>
|
After Width: | Height: | Size: 170 B |
Before Width: | Height: | Size: 3.8 KiB |
@ -1,83 +0,0 @@
|
||||
<?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:PocketBook"
|
||||
x:Class="PocketBook.TousPage"
|
||||
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit">
|
||||
|
||||
<Grid RowDefinitions="auto, *">
|
||||
|
||||
<StackLayout Orientation="Vertical">
|
||||
<StackLayout Orientation="Horizontal" Padding="5,0,0,0" >
|
||||
<StackLayout Orientation="Horizontal" HorizontalOptions="StartAndExpand">
|
||||
<StackLayout.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="RetourMainMenu"/>
|
||||
</StackLayout.GestureRecognizers>
|
||||
<Image Source="chevron_left.png">
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
<Label VerticalTextAlignment="Center" Text="Mes livres" FontAttributes="Bold" TextColor="{StaticResource Primary}" FontSize="15" Margin="5,0,0,0"/>
|
||||
</StackLayout>
|
||||
<Label Text="Tous" FontAttributes="Bold" FontSize="18" VerticalTextAlignment="Center" HorizontalOptions="Center" Margin="0,0,10,0"/>
|
||||
<StackLayout HorizontalOptions="EndAndExpand" Orientation="Horizontal">
|
||||
<ImageButton VerticalOptions="Center" Clicked="OnImageButtonClicked" HorizontalOptions="StartAndExpand" Source="plus.png" Scale="0.5">
|
||||
<ImageButton.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
|
||||
</ImageButton.Behaviors>
|
||||
|
||||
</ImageButton>
|
||||
<ImageButton x:Name="imageArrows" WidthRequest="25" HeightRequest="25" HorizontalOptions="End" Scale="0.6" Source="arrows.png">
|
||||
<ImageButton.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="{StaticResource Primary}"/>
|
||||
</ImageButton.Behaviors>
|
||||
</ImageButton>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
<Line BackgroundColor="#E6E6E6"/>
|
||||
|
||||
</StackLayout>
|
||||
|
||||
|
||||
|
||||
<ScrollView Grid.Row="1">
|
||||
<VerticalStackLayout>
|
||||
<StackLayout BackgroundColor="#F8F8F8" Padding="5">
|
||||
<Label Text="Alain Damasio" TextColor="#AFAFAF" FontAttributes="Bold" Margin="15,0,0,0" />
|
||||
</StackLayout>
|
||||
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La horde du contrevent" AutorName="Alain Damasio" BookStatus="Non lu">
|
||||
<local:ContentViewBook.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="OnBookSelected"/>
|
||||
</local:ContentViewBook.GestureRecognizers>
|
||||
</local:ContentViewBook>
|
||||
<Line BackgroundColor="#E6E6E6" Margin="15,0,0,0"/>
|
||||
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La zone du dehors" AutorName="Alain Damasio" BookStatus="Terminé">
|
||||
<local:ContentViewBook.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="OnBookSelected"/>
|
||||
</local:ContentViewBook.GestureRecognizers>
|
||||
</local:ContentViewBook>
|
||||
<StackLayout BackgroundColor="#F8F8F8" Padding="5">
|
||||
<Label Text="Cixin Liu" TextColor="#AFAFAF" FontAttributes="Bold" Margin="15,0,0,0" />
|
||||
</StackLayout>
|
||||
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="L'équateur d'Einstein" AutorName="Cixin Liu" BookStatus="Terminé">
|
||||
<local:ContentViewBook.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="OnBookSelected"/>
|
||||
</local:ContentViewBook.GestureRecognizers>
|
||||
</local:ContentViewBook>
|
||||
<Line BackgroundColor="#E6E6E6" Margin="15,0,0,0"/>
|
||||
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="La forêt sombre" AutorName="Cixin Liu" BookStatus="Terminé">
|
||||
<local:ContentViewBook.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="OnBookSelected"/>
|
||||
</local:ContentViewBook.GestureRecognizers>
|
||||
</local:ContentViewBook>
|
||||
<Line BackgroundColor="#E6E6E6" Margin="15,0,0,0"/>
|
||||
<local:ContentViewBook BookImage="buveurencre.jpg" BookName="Le problème à trois corps" AutorName="Cixin Liu" BookStatus="Terminé">
|
||||
<local:ContentViewBook.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="OnBookSelected"/>
|
||||
</local:ContentViewBook.GestureRecognizers>
|
||||
</local:ContentViewBook>
|
||||
</VerticalStackLayout>
|
||||
</ScrollView>
|
||||
</Grid>
|
||||
</ContentPage>
|
Loading…
Reference in new issue