parent
4cdfd6a42d
commit
aab6b54ecd
@ -0,0 +1,120 @@
|
|||||||
|
<?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:view="clr-namespace:LivreLand.View"
|
||||||
|
xmlns:contentView="clr-namespace:LivreLand.View.ContentViews"
|
||||||
|
x:Class="LivreLand.View.ALirePlusTardView"
|
||||||
|
Title="ALirePlusTardView">
|
||||||
|
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="10"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<view:HeaderPage HeaderTitle="A lire plus tard"
|
||||||
|
HeaderBackButtonText="Mes livres"
|
||||||
|
HeaderPlusButtonVisible="True"
|
||||||
|
HeaderSwitchButtonVisible="True"
|
||||||
|
Grid.Row="0"/>
|
||||||
|
<ScrollView Grid.Row="2">
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="40"/>
|
||||||
|
<RowDefinition Height="10"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid BackgroundColor="{AppThemeBinding Light={StaticResource HeaderGray}, Dark={StaticResource Gray900}}"
|
||||||
|
Grid.Row="0">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="10"/>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Label Text="A lire plus tard"
|
||||||
|
VerticalOptions="Center"
|
||||||
|
Style="{StaticResource HeaderCollectionViewText}"
|
||||||
|
Grid.Column="1"/>
|
||||||
|
</Grid>
|
||||||
|
<CollectionView ItemsSource="{Binding ALirePlusTardBooks}"
|
||||||
|
SelectionMode="Single"
|
||||||
|
SelectionChanged="OnSelectionChanged"
|
||||||
|
Grid.Row="2">
|
||||||
|
<CollectionView.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<VerticalStackLayout Margin="10"
|
||||||
|
Spacing="20">
|
||||||
|
<VisualStateManager.VisualStateGroups x:Name="SelectionStates">
|
||||||
|
<VisualStateGroup>
|
||||||
|
<VisualState x:Name="Selected">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter Property="BackgroundColor" Value="Transparent" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateManager.VisualStateGroups>
|
||||||
|
<Grid>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition Width="10"/>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Border Padding="-5,-5,-5,1"
|
||||||
|
Margin="10,0,0,0"
|
||||||
|
HeightRequest="100"
|
||||||
|
WidthRequest="62"
|
||||||
|
HorizontalOptions="Center"
|
||||||
|
Stroke="{StaticResource Gray}"
|
||||||
|
StrokeShape="RoundRectangle 3"
|
||||||
|
StrokeThickness="3"
|
||||||
|
Grid.Column="0"
|
||||||
|
Grid.RowSpan="5">
|
||||||
|
<Border HorizontalOptions="Center"
|
||||||
|
Stroke="{StaticResource Gray}"
|
||||||
|
StrokeShape="RoundRectangle 3"
|
||||||
|
StrokeThickness="3">
|
||||||
|
<Image Source="couverture_la_horde_du_contrevent.png"
|
||||||
|
Aspect="AspectFill"
|
||||||
|
Grid.Column="0"
|
||||||
|
Grid.RowSpan="5"/>
|
||||||
|
</Border>
|
||||||
|
</Border>
|
||||||
|
<Label Text="{Binding Title}"
|
||||||
|
Style="{StaticResource MasterTitleBookText}"
|
||||||
|
Grid.Column="2"
|
||||||
|
Grid.Row="0"/>
|
||||||
|
<Label Text="{Binding Author}"
|
||||||
|
Style="{StaticResource MasterAuthorBookText}"
|
||||||
|
Grid.Column="2"
|
||||||
|
Grid.Row="1"/>
|
||||||
|
<Label Text="{Binding State}"
|
||||||
|
Style="{StaticResource MasterStateBookText}"
|
||||||
|
Grid.Column="2"
|
||||||
|
Grid.Row="2"/>
|
||||||
|
<contentView:StarNotationView Grid.Column="2"
|
||||||
|
Grid.Row="4"/>
|
||||||
|
</Grid>
|
||||||
|
<contentView:SeparatorCutStartView/>
|
||||||
|
</VerticalStackLayout>
|
||||||
|
</DataTemplate>
|
||||||
|
</CollectionView.ItemTemplate>
|
||||||
|
</CollectionView>
|
||||||
|
</Grid>
|
||||||
|
</ScrollView>
|
||||||
|
<Grid HorizontalOptions="End"
|
||||||
|
VerticalOptions="Center"
|
||||||
|
Grid.RowSpan="3">
|
||||||
|
<contentView:AlphabetVerticalMenuView/>
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</ContentPage>
|
@ -0,0 +1,22 @@
|
|||||||
|
using LivreLand.Model;
|
||||||
|
|
||||||
|
namespace LivreLand.View;
|
||||||
|
|
||||||
|
public partial class ALirePlusTardView : ContentPage
|
||||||
|
{
|
||||||
|
public List<BookModel> ALirePlusTardBooks { get; set; } = new List<BookModel>()
|
||||||
|
{
|
||||||
|
new BookModel("La horde du contrevent","Alain Damasio","Non lu", 0),
|
||||||
|
};
|
||||||
|
|
||||||
|
public ALirePlusTardView()
|
||||||
|
{
|
||||||
|
BindingContext = this;
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
void OnSelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||||
|
{
|
||||||
|
App.Current.MainPage.Navigation.PushAsync(new DetailsLivreView());
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,120 @@
|
|||||||
|
<?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:view="clr-namespace:LivreLand.View"
|
||||||
|
xmlns:contentView="clr-namespace:LivreLand.View.ContentViews"
|
||||||
|
x:Class="LivreLand.View.FavorisView"
|
||||||
|
Title="FavorisView">
|
||||||
|
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="10"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<view:HeaderPage HeaderTitle="Favoris"
|
||||||
|
HeaderBackButtonText="Mes livres"
|
||||||
|
HeaderPlusButtonVisible="True"
|
||||||
|
HeaderSwitchButtonVisible="True"
|
||||||
|
Grid.Row="0"/>
|
||||||
|
<ScrollView Grid.Row="2">
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="40"/>
|
||||||
|
<RowDefinition Height="10"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid BackgroundColor="{AppThemeBinding Light={StaticResource HeaderGray}, Dark={StaticResource Gray900}}"
|
||||||
|
Grid.Row="0">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="10"/>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Label Text="Favoris"
|
||||||
|
VerticalOptions="Center"
|
||||||
|
Style="{StaticResource HeaderCollectionViewText}"
|
||||||
|
Grid.Column="1"/>
|
||||||
|
</Grid>
|
||||||
|
<CollectionView ItemsSource="{Binding FavorisBooks}"
|
||||||
|
SelectionMode="Single"
|
||||||
|
SelectionChanged="OnSelectionChanged"
|
||||||
|
Grid.Row="2">
|
||||||
|
<CollectionView.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<VerticalStackLayout Margin="10"
|
||||||
|
Spacing="20">
|
||||||
|
<VisualStateManager.VisualStateGroups x:Name="SelectionStates">
|
||||||
|
<VisualStateGroup>
|
||||||
|
<VisualState x:Name="Selected">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter Property="BackgroundColor" Value="Transparent" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateManager.VisualStateGroups>
|
||||||
|
<Grid>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition Width="10"/>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Border Padding="-5,-5,-5,1"
|
||||||
|
Margin="10,0,0,0"
|
||||||
|
HeightRequest="100"
|
||||||
|
WidthRequest="62"
|
||||||
|
HorizontalOptions="Center"
|
||||||
|
Stroke="{StaticResource Gray}"
|
||||||
|
StrokeShape="RoundRectangle 3"
|
||||||
|
StrokeThickness="3"
|
||||||
|
Grid.Column="0"
|
||||||
|
Grid.RowSpan="5">
|
||||||
|
<Border HorizontalOptions="Center"
|
||||||
|
Stroke="{StaticResource Gray}"
|
||||||
|
StrokeShape="RoundRectangle 3"
|
||||||
|
StrokeThickness="3">
|
||||||
|
<Image Source="couverture_la_horde_du_contrevent.png"
|
||||||
|
Aspect="AspectFill"
|
||||||
|
Grid.Column="0"
|
||||||
|
Grid.RowSpan="5"/>
|
||||||
|
</Border>
|
||||||
|
</Border>
|
||||||
|
<Label Text="{Binding Title}"
|
||||||
|
Style="{StaticResource MasterTitleBookText}"
|
||||||
|
Grid.Column="2"
|
||||||
|
Grid.Row="0"/>
|
||||||
|
<Label Text="{Binding Author}"
|
||||||
|
Style="{StaticResource MasterAuthorBookText}"
|
||||||
|
Grid.Column="2"
|
||||||
|
Grid.Row="1"/>
|
||||||
|
<Label Text="{Binding State}"
|
||||||
|
Style="{StaticResource MasterStateBookText}"
|
||||||
|
Grid.Column="2"
|
||||||
|
Grid.Row="2"/>
|
||||||
|
<contentView:StarNotationView Grid.Column="2"
|
||||||
|
Grid.Row="4"/>
|
||||||
|
</Grid>
|
||||||
|
<contentView:SeparatorCutStartView/>
|
||||||
|
</VerticalStackLayout>
|
||||||
|
</DataTemplate>
|
||||||
|
</CollectionView.ItemTemplate>
|
||||||
|
</CollectionView>
|
||||||
|
</Grid>
|
||||||
|
</ScrollView>
|
||||||
|
<Grid HorizontalOptions="End"
|
||||||
|
VerticalOptions="Center"
|
||||||
|
Grid.RowSpan="3">
|
||||||
|
<contentView:AlphabetVerticalMenuView/>
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</ContentPage>
|
@ -0,0 +1,23 @@
|
|||||||
|
using LivreLand.Model;
|
||||||
|
|
||||||
|
namespace LivreLand.View;
|
||||||
|
|
||||||
|
public partial class FavorisView : ContentPage
|
||||||
|
{
|
||||||
|
public List<BookModel> FavorisBooks { get; set; } = new List<BookModel>()
|
||||||
|
{
|
||||||
|
new BookModel("La zone du dehors","Alain Damasio","Terminé", 0),
|
||||||
|
new BookModel("Le problème à trois corps","Cixin Liu","Terminé", 0)
|
||||||
|
};
|
||||||
|
|
||||||
|
public FavorisView()
|
||||||
|
{
|
||||||
|
BindingContext = this;
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
void OnSelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||||
|
{
|
||||||
|
App.Current.MainPage.Navigation.PushAsync(new DetailsLivreView());
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,205 @@
|
|||||||
|
<?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:view="clr-namespace:LivreLand.View"
|
||||||
|
xmlns:contentView="clr-namespace:LivreLand.View.ContentViews"
|
||||||
|
x:Class="LivreLand.View.StatutLectureView"
|
||||||
|
Title="StatutLectureView">
|
||||||
|
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="10"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="10"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<view:HeaderPage HeaderTitle="Statut de lecture"
|
||||||
|
HeaderBackButtonText="Mes livres"
|
||||||
|
HeaderPlusButtonVisible="True"
|
||||||
|
HeaderSwitchButtonVisible="True"
|
||||||
|
Grid.Row="0"/>
|
||||||
|
<contentView:SearchBarView Grid.Row="2"/>
|
||||||
|
<ScrollView Grid.Row="4">
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="40"/>
|
||||||
|
<RowDefinition Height="10"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="10"/>
|
||||||
|
<RowDefinition Height="40"/>
|
||||||
|
<RowDefinition Height="10"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid BackgroundColor="{AppThemeBinding Light={StaticResource HeaderGray}, Dark={StaticResource Gray900}}"
|
||||||
|
Grid.Row="0">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="10"/>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Label Text="Non lus"
|
||||||
|
VerticalOptions="Center"
|
||||||
|
Style="{StaticResource HeaderCollectionViewText}"
|
||||||
|
Grid.Column="1"/>
|
||||||
|
</Grid>
|
||||||
|
<CollectionView ItemsSource="{Binding NonLuBooks}"
|
||||||
|
SelectionMode="Single"
|
||||||
|
SelectionChanged="OnSelectionChanged"
|
||||||
|
Grid.Row="2">
|
||||||
|
<CollectionView.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<VerticalStackLayout Margin="10"
|
||||||
|
Spacing="20">
|
||||||
|
<VisualStateManager.VisualStateGroups x:Name="SelectionStates">
|
||||||
|
<VisualStateGroup>
|
||||||
|
<VisualState x:Name="Selected">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter Property="BackgroundColor" Value="Transparent" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateManager.VisualStateGroups>
|
||||||
|
<Grid>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition Width="10"/>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Border Padding="-5,-5,-5,1"
|
||||||
|
Margin="10,0,0,0"
|
||||||
|
HeightRequest="100"
|
||||||
|
WidthRequest="62"
|
||||||
|
HorizontalOptions="Center"
|
||||||
|
Stroke="{StaticResource Gray}"
|
||||||
|
StrokeShape="RoundRectangle 3"
|
||||||
|
StrokeThickness="3"
|
||||||
|
Grid.Column="0"
|
||||||
|
Grid.RowSpan="5">
|
||||||
|
<Border HorizontalOptions="Center"
|
||||||
|
Stroke="{StaticResource Gray}"
|
||||||
|
StrokeShape="RoundRectangle 3"
|
||||||
|
StrokeThickness="3">
|
||||||
|
<Image Source="couverture_la_horde_du_contrevent.png"
|
||||||
|
Aspect="AspectFill"
|
||||||
|
Grid.Column="0"
|
||||||
|
Grid.RowSpan="5"/>
|
||||||
|
</Border>
|
||||||
|
</Border>
|
||||||
|
<Label Text="{Binding Title}"
|
||||||
|
Style="{StaticResource MasterTitleBookText}"
|
||||||
|
Grid.Column="2"
|
||||||
|
Grid.Row="0"/>
|
||||||
|
<Label Text="{Binding Author}"
|
||||||
|
Style="{StaticResource MasterAuthorBookText}"
|
||||||
|
Grid.Column="2"
|
||||||
|
Grid.Row="1"/>
|
||||||
|
<Label Text="{Binding State}"
|
||||||
|
Style="{StaticResource MasterStateBookText}"
|
||||||
|
Grid.Column="2"
|
||||||
|
Grid.Row="2"/>
|
||||||
|
<contentView:StarNotationView Grid.Column="2"
|
||||||
|
Grid.Row="4"/>
|
||||||
|
</Grid>
|
||||||
|
<contentView:SeparatorCutStartView/>
|
||||||
|
</VerticalStackLayout>
|
||||||
|
</DataTemplate>
|
||||||
|
</CollectionView.ItemTemplate>
|
||||||
|
</CollectionView>
|
||||||
|
<Grid BackgroundColor="{AppThemeBinding Light={StaticResource HeaderGray}, Dark={StaticResource Gray900}}"
|
||||||
|
Grid.Row="4">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="10"/>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Label Text="Terminés"
|
||||||
|
VerticalOptions="Center"
|
||||||
|
Style="{StaticResource HeaderCollectionViewText}"
|
||||||
|
Grid.Column="1"/>
|
||||||
|
</Grid>
|
||||||
|
<CollectionView ItemsSource="{Binding TermineBooks}"
|
||||||
|
SelectionMode="Single"
|
||||||
|
SelectionChanged="OnSelectionChanged"
|
||||||
|
Grid.Row="6">
|
||||||
|
<CollectionView.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<VerticalStackLayout Margin="10"
|
||||||
|
Spacing="20">
|
||||||
|
<VisualStateManager.VisualStateGroups x:Name="SelectionStates">
|
||||||
|
<VisualStateGroup>
|
||||||
|
<VisualState x:Name="Selected">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter Property="BackgroundColor" Value="Transparent" />
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateManager.VisualStateGroups>
|
||||||
|
<Grid>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition Width="10"/>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Border Padding="-5,-5,-5,1"
|
||||||
|
Margin="10,0,0,0"
|
||||||
|
HeightRequest="100"
|
||||||
|
WidthRequest="62"
|
||||||
|
HorizontalOptions="Center"
|
||||||
|
Stroke="{StaticResource Gray}"
|
||||||
|
StrokeShape="RoundRectangle 3"
|
||||||
|
StrokeThickness="3"
|
||||||
|
Grid.Column="0"
|
||||||
|
Grid.RowSpan="5">
|
||||||
|
<Border HorizontalOptions="Center"
|
||||||
|
Stroke="{StaticResource Gray}"
|
||||||
|
StrokeShape="RoundRectangle 3"
|
||||||
|
StrokeThickness="3">
|
||||||
|
<Image Source="couverture_la_horde_du_contrevent.png"
|
||||||
|
Aspect="AspectFill"
|
||||||
|
Grid.Column="0"
|
||||||
|
Grid.RowSpan="5"/>
|
||||||
|
</Border>
|
||||||
|
</Border>
|
||||||
|
<Label Text="{Binding Title}"
|
||||||
|
Style="{StaticResource MasterTitleBookText}"
|
||||||
|
Grid.Column="2"
|
||||||
|
Grid.Row="0"/>
|
||||||
|
<Label Text="{Binding Author}"
|
||||||
|
Style="{StaticResource MasterAuthorBookText}"
|
||||||
|
Grid.Column="2"
|
||||||
|
Grid.Row="1"/>
|
||||||
|
<Label Text="{Binding State}"
|
||||||
|
Style="{StaticResource MasterStateBookText}"
|
||||||
|
Grid.Column="2"
|
||||||
|
Grid.Row="2"/>
|
||||||
|
<contentView:StarNotationView Grid.Column="2"
|
||||||
|
Grid.Row="4"/>
|
||||||
|
</Grid>
|
||||||
|
<contentView:SeparatorCutStartView/>
|
||||||
|
</VerticalStackLayout>
|
||||||
|
</DataTemplate>
|
||||||
|
</CollectionView.ItemTemplate>
|
||||||
|
</CollectionView>
|
||||||
|
</Grid>
|
||||||
|
</ScrollView>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</ContentPage>
|
@ -0,0 +1,30 @@
|
|||||||
|
using LivreLand.Model;
|
||||||
|
|
||||||
|
namespace LivreLand.View;
|
||||||
|
|
||||||
|
public partial class StatutLectureView : ContentPage
|
||||||
|
{
|
||||||
|
public List<BookModel> NonLuBooks { get; set; } = new List<BookModel>()
|
||||||
|
{
|
||||||
|
new BookModel("La horde du contrevent","Alain Damasio","Non lu", 0),
|
||||||
|
};
|
||||||
|
|
||||||
|
public List<BookModel> TermineBooks { get; set; } = new List<BookModel>()
|
||||||
|
{
|
||||||
|
new BookModel("La zone du dehors","Alain Damasio","Terminé", 0),
|
||||||
|
new BookModel("L'équateur d'Einstein","Cixin Liu","Terminé", 0),
|
||||||
|
new BookModel("La forêt sombre","Cixin Liu","Terminé", 0),
|
||||||
|
new BookModel("Le problème à trois corps","Cixin Liu","Terminé", 0)
|
||||||
|
};
|
||||||
|
|
||||||
|
public StatutLectureView()
|
||||||
|
{
|
||||||
|
BindingContext = this;
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
void OnSelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||||
|
{
|
||||||
|
App.Current.MainPage.Navigation.PushAsync(new DetailsLivreView());
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue