|
|
@ -3,6 +3,7 @@
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
|
|
xmlns:view="clr-namespace:LivreLand.View"
|
|
|
|
xmlns:view="clr-namespace:LivreLand.View"
|
|
|
|
xmlns:contentView="clr-namespace:LivreLand.View.ContentViews"
|
|
|
|
xmlns:contentView="clr-namespace:LivreLand.View.ContentViews"
|
|
|
|
|
|
|
|
xmlns:viewModel="clr-namespace:ViewModels;assembly=ViewModels"
|
|
|
|
x:Class="LivreLand.View.StatutLectureView"
|
|
|
|
x:Class="LivreLand.View.StatutLectureView"
|
|
|
|
Title="StatutLectureView">
|
|
|
|
Title="StatutLectureView">
|
|
|
|
|
|
|
|
|
|
|
@ -23,123 +24,29 @@
|
|
|
|
<contentView:SearchBarView Grid.Row="2"/>
|
|
|
|
<contentView:SearchBarView Grid.Row="2"/>
|
|
|
|
<ScrollView Grid.Row="4">
|
|
|
|
<ScrollView Grid.Row="4">
|
|
|
|
<Grid>
|
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<CollectionView ItemsSource="{Binding StatutLectureVM.Manager.AllBooks}"
|
|
|
|
<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"
|
|
|
|
SelectionMode="Single"
|
|
|
|
SelectionChanged="OnSelectionChanged"
|
|
|
|
SelectionChanged="OnSelectionChanged"
|
|
|
|
Grid.Row="2">
|
|
|
|
Grid.Row="2">
|
|
|
|
<CollectionView.ItemTemplate>
|
|
|
|
<!--<CollectionView.GroupHeaderTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<DataTemplate x:DataType="viewModel:BookVM">
|
|
|
|
<VerticalStackLayout Margin="10"
|
|
|
|
<Grid BackgroundColor="{AppThemeBinding Light={StaticResource HeaderGray}, Dark={StaticResource Gray900}}"
|
|
|
|
Spacing="20">
|
|
|
|
Grid.Row="0">
|
|
|
|
<VisualStateManager.VisualStateGroups x:Name="SelectionStates">
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<VisualStateGroup>
|
|
|
|
<ColumnDefinition Width="10"/>
|
|
|
|
<VisualState x:Name="Selected">
|
|
|
|
<ColumnDefinition Width="auto"/>
|
|
|
|
<VisualState.Setters>
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
<Setter Property="BackgroundColor" Value="Transparent" />
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
</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>
|
|
|
|
|
|
|
|
<Grid Grid.Column="0"
|
|
|
|
|
|
|
|
Grid.RowSpan="5">
|
|
|
|
|
|
|
|
<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">
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<Image Source="bookmark_red.png"
|
|
|
|
|
|
|
|
HeightRequest="10"
|
|
|
|
|
|
|
|
WidthRequest="10"
|
|
|
|
|
|
|
|
Margin="0,97,20,0"
|
|
|
|
|
|
|
|
VerticalOptions="End"/>
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
<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"
|
|
|
|
<Label Text="{Binding Status}"
|
|
|
|
VerticalOptions="Center"
|
|
|
|
VerticalOptions="Center"
|
|
|
|
Style="{StaticResource HeaderCollectionViewText}"
|
|
|
|
Style="{StaticResource HeaderCollectionViewText}"
|
|
|
|
Grid.Column="1"/>
|
|
|
|
Grid.Column="1"/>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
<CollectionView ItemsSource="{Binding TermineBooks}"
|
|
|
|
</DataTemplate>
|
|
|
|
SelectionMode="Single"
|
|
|
|
</CollectionView.GroupHeaderTemplate>-->
|
|
|
|
SelectionChanged="OnSelectionChanged"
|
|
|
|
|
|
|
|
Grid.Row="6">
|
|
|
|
|
|
|
|
<CollectionView.ItemTemplate>
|
|
|
|
<CollectionView.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<DataTemplate x:DataType="viewModel:BookVM">
|
|
|
|
<VerticalStackLayout Margin="10"
|
|
|
|
<VerticalStackLayout Margin="10"
|
|
|
|
Spacing="20">
|
|
|
|
Spacing="20">
|
|
|
|
<VisualStateManager.VisualStateGroups x:Name="SelectionStates">
|
|
|
|
<VisualStateManager.VisualStateGroups x:Name="SelectionStates">
|
|
|
@ -178,7 +85,7 @@
|
|
|
|
Stroke="{StaticResource Gray}"
|
|
|
|
Stroke="{StaticResource Gray}"
|
|
|
|
StrokeShape="RoundRectangle 3"
|
|
|
|
StrokeShape="RoundRectangle 3"
|
|
|
|
StrokeThickness="3">
|
|
|
|
StrokeThickness="3">
|
|
|
|
<Image Source="couverture_la_horde_du_contrevent.png"
|
|
|
|
<Image Source="{Binding ImageSmall}"
|
|
|
|
Aspect="AspectFill"
|
|
|
|
Aspect="AspectFill"
|
|
|
|
Grid.Column="0"
|
|
|
|
Grid.Column="0"
|
|
|
|
Grid.RowSpan="5"/>
|
|
|
|
Grid.RowSpan="5"/>
|
|
|
@ -194,11 +101,11 @@
|
|
|
|
Style="{StaticResource MasterTitleBookText}"
|
|
|
|
Style="{StaticResource MasterTitleBookText}"
|
|
|
|
Grid.Column="2"
|
|
|
|
Grid.Column="2"
|
|
|
|
Grid.Row="0"/>
|
|
|
|
Grid.Row="0"/>
|
|
|
|
<Label Text="{Binding Author}"
|
|
|
|
<Label Text="Author"
|
|
|
|
Style="{StaticResource MasterAuthorBookText}"
|
|
|
|
Style="{StaticResource MasterAuthorBookText}"
|
|
|
|
Grid.Column="2"
|
|
|
|
Grid.Column="2"
|
|
|
|
Grid.Row="1"/>
|
|
|
|
Grid.Row="1"/>
|
|
|
|
<Label Text="{Binding State}"
|
|
|
|
<Label Text="{Binding Status}"
|
|
|
|
Style="{StaticResource MasterStateBookText}"
|
|
|
|
Style="{StaticResource MasterStateBookText}"
|
|
|
|
Grid.Column="2"
|
|
|
|
Grid.Column="2"
|
|
|
|
Grid.Row="2"/>
|
|
|
|
Grid.Row="2"/>
|
|
|
|