Merge pull request 'Front-End' (#2) from Front-End into master
continuous-integration/drone/push Build is passing
Details
Reviewed-on: #2master
@ -0,0 +1,68 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: pocketPipeline
|
||||
|
||||
trigger:
|
||||
#branch:
|
||||
#- master
|
||||
event:
|
||||
- push
|
||||
|
||||
steps:
|
||||
#- name: lint
|
||||
- name: format
|
||||
image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dotnet7-maui:latest
|
||||
commands:
|
||||
- dotnet tool install -g CSharpier # Installez CSharpier si necessaire
|
||||
- export PATH="$PATH:/root/.dotnet/tools" # Ajoutez le chemin des outils .NET Core au PATH
|
||||
- cd src/
|
||||
- dotnet-csharpier --check . # Verifie le formatage
|
||||
|
||||
- name: build
|
||||
image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dotnet7-maui:latest
|
||||
commandes:
|
||||
- cd src/
|
||||
- dotnet restore BookApp.sln
|
||||
- dotnet build BookApp.sln -c Release --no-restore /p:AndroidSdkDirectory=$ANDROID_SDK_ROOT -property:Aapt2ToolPath=$ANDROID_SDK_ROOT/build-tools/33.0.0
|
||||
- dotnet publish BookApp/BookApp.csproj -c Release --no-restore -o $CI_PROJECT_DIR/build/release -f:net7.0-android /p:AndroidSdkDirectory=/usr/lib/android-sdk
|
||||
|
||||
- name: test
|
||||
image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dotnet7-maui:latest
|
||||
commands:
|
||||
- cd src/
|
||||
- dotnet restore BookApp.sln
|
||||
- dotnet test BookApp.sln --no-restore /p:AndroidSdkDirectory=$ANDROID_SDK_ROOT -property:Aapt2ToolPath=$ANDROID_SDK_ROOT/build-tools/33.0.0
|
||||
depends_on: [build]
|
||||
|
||||
- name: analyse
|
||||
image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dronesonarplugin-dotnet7-maui
|
||||
secrets: [ SECRET_SONAR_LOGIN ]
|
||||
environment:
|
||||
sonar_host: https://codefirst.iut.uca.fr/sonar/
|
||||
sonar_token:
|
||||
from_secret: SECRET_SONAR_LOGIN
|
||||
project_key: BookApp
|
||||
coverage_exclusions: "Tests/**"
|
||||
commands:
|
||||
- cd src/
|
||||
- dotnet restore BookApp.sln
|
||||
- dotnet sonarscanner begin /k:$${project_key} /d:sonar.host.url=$${sonar_host} /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.coverage.exclusions=$${coverage_exclusions} /d:sonar.login=$${sonar_token}
|
||||
- dotnet build BookApp.sln -c Release --no-restore /p:AndroidSdkDirectory=$ANDROID_SDK_ROOT -property:Aapt2ToolPath=$ANDROID_SDK_ROOT/build-tools/33.0.0
|
||||
- dotnet test BookApp.sln --logger trx --no-restore /p:AndroidSdkDirectory=$ANDROID_SDK_ROOT -property:Aapt2ToolPath=$ANDROID_SDK_ROOT/build-tools/33.0.0 /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect "XPlat Code Coverage"
|
||||
- reportgenerator -reports:"**/coverage.cobertura.xml" -reporttypes:SonarQube -targetdir:"coveragereport"
|
||||
- dotnet publish BookApp/BookApp.csproj -c Release --no-restore -o $CI_PROJECT_DIR/build/release -f:net7.0-android /p:AndroidSdkDirectory=/usr/lib/android-sdk
|
||||
- dotnet sonarscanner end /d:sonar.login=$${sonar_token}
|
||||
depends_on: [test]
|
||||
|
||||
- name: generate-and-deploy-docs
|
||||
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-docdeployer
|
||||
failure: ignore
|
||||
volumes:
|
||||
- name: docs
|
||||
path: /docs
|
||||
commands:
|
||||
- /entrypoint.sh
|
||||
#environment:
|
||||
# NODOXYGEN: true
|
||||
#- name: deploy
|
||||
|
@ -1,14 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<Shell
|
||||
x:Class="BookApp.AppShell"
|
||||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:local="clr-namespace:BookApp"
|
||||
Shell.FlyoutBehavior="Disabled">
|
||||
|
||||
<ShellContent
|
||||
Title="Home"
|
||||
ContentTemplate="{DataTemplate local:MainPage}"
|
||||
Route="MainPage" />
|
||||
|
||||
</Shell>
|
@ -1,41 +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="BookApp.MainPage">
|
||||
|
||||
<ScrollView>
|
||||
<VerticalStackLayout
|
||||
Spacing="25"
|
||||
Padding="30,0"
|
||||
VerticalOptions="Center">
|
||||
|
||||
<Image
|
||||
Source="dotnet_bot.png"
|
||||
SemanticProperties.Description="Cute dot net bot waving hi to you!"
|
||||
HeightRequest="200"
|
||||
HorizontalOptions="Center" />
|
||||
|
||||
<Label
|
||||
Text="Hello, World!"
|
||||
SemanticProperties.HeadingLevel="Level1"
|
||||
FontSize="32"
|
||||
HorizontalOptions="Center" />
|
||||
|
||||
<Label
|
||||
Text="Welcome to .NET Multi-platform App UI"
|
||||
SemanticProperties.HeadingLevel="Level2"
|
||||
SemanticProperties.Description="Welcome to dot net Multi platform App U I"
|
||||
FontSize="18"
|
||||
HorizontalOptions="Center" />
|
||||
|
||||
<Button
|
||||
x:Name="CounterBtn"
|
||||
Text="Click me"
|
||||
SemanticProperties.Hint="Counts the number of times you click"
|
||||
Clicked="OnCounterClicked"
|
||||
HorizontalOptions="Center" />
|
||||
|
||||
</VerticalStackLayout>
|
||||
</ScrollView>
|
||||
|
||||
</ContentPage>
|
@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<Shell
|
||||
x:Class="BookApp.AppShell"
|
||||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:local="clr-namespace:BookApp"
|
||||
xmlns:pages="clr-namespace:BookApp.Pages"
|
||||
Shell.FlyoutBehavior="Disabled">
|
||||
|
||||
|
||||
<TabBar >
|
||||
<Tab Title="My Library"
|
||||
Icon="books_vertical_fill.svg">
|
||||
<ShellContent ContentTemplate="{DataTemplate local:MainPage}" Route="Mainpage"/>
|
||||
</Tab>
|
||||
<Tab Title="My lists"
|
||||
Icon="list_bullet.svg">
|
||||
<ShellContent ContentTemplate="{DataTemplate pages:EmpruntsPrets}"/>
|
||||
</Tab>
|
||||
<Tab Title="My Readings"
|
||||
Icon="bookmark_fill.svg">
|
||||
<ShellContent ContentTemplate="{DataTemplate local:MainPage}" />
|
||||
</Tab>
|
||||
<Tab Title="Search"
|
||||
Icon="magnifyingglass.svg">
|
||||
<ShellContent ContentTemplate="{DataTemplate local:MainPage}" />
|
||||
</Tab>
|
||||
</TabBar>
|
||||
|
||||
<ShellContent Route="FiltragePage" ContentTemplate="{DataTemplate pages:Filtrage}" />
|
||||
<ShellContent Route="TousPage" ContentTemplate="{DataTemplate pages:Tous}" />
|
||||
|
||||
</Shell>
|
@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
||||
x:Class="BookApp.Composants.CollectionFiltrage">
|
||||
<CollectionView ItemsSource="{Binding MyCollections1}">
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<StackLayout Padding="5">
|
||||
<Grid RowDefinitions="auto" Margin="5,0,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="30"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Image Grid.Column="0" HeightRequest="30"
|
||||
WidthRequest="30" Source="Book.svg">
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="Red" />
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
<Label Grid.Column="1" Margin="10,0,0,0" VerticalTextAlignment="Center" Text="{Binding AuteurName}"/>
|
||||
<Label Grid.Column="2" VerticalTextAlignment="Center" Margin="0,0,40,0" HorizontalTextAlignment="End" Text="{Binding NbLivre}"/>
|
||||
<Button Grid.Column="2"
|
||||
ImageSource="chevron_right.svg"
|
||||
HeightRequest="35"
|
||||
WidthRequest="35"
|
||||
VerticalOptions="Center"
|
||||
BackgroundColor="White"
|
||||
HorizontalOptions="End"/>
|
||||
</Grid>
|
||||
<Rectangle Margin="45,0,0,0" HeightRequest="1" BackgroundColor="LightGray" VerticalOptions="End" />
|
||||
</StackLayout>
|
||||
</DataTemplate>
|
||||
</CollectionView.ItemTemplate>
|
||||
</CollectionView>
|
||||
</ContentView>
|
@ -0,0 +1,60 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:composants="clr-namespace:BookApp.Composants"
|
||||
x:Class="BookApp.Composants.GroupCollection">
|
||||
<CollectionView ItemsSource="{Binding AuteurGroups}" IsGrouped="True" SelectionMode="Single" SelectionChanged="OnSelectionChanged">
|
||||
<CollectionView.GroupHeaderTemplate>
|
||||
<DataTemplate>
|
||||
<Label Text="{Binding Name}"
|
||||
FontFamily="SF-Compact-Display-Semibold"
|
||||
BackgroundColor="LightGrey"
|
||||
TextColor="Gray"
|
||||
Padding="5"
|
||||
Margin="15,0,0,0"/>
|
||||
</DataTemplate>
|
||||
</CollectionView.GroupHeaderTemplate>
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<StackLayout>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Image Grid.Column="0"
|
||||
Source="{Binding ImageBook}"
|
||||
HeightRequest="125"
|
||||
WidthRequest="125"
|
||||
Margin="0,10,0,10"/>
|
||||
<StackLayout Grid.Column="1">
|
||||
<Label Text="{Binding Name}"
|
||||
FontFamily="SF-Compact-Display-Bold"
|
||||
FontSize="18"
|
||||
TextColor="Black"/>
|
||||
<Label Text="{Binding Auteur.Name}"
|
||||
FontFamily="SF-Compact-Display-Semibold"
|
||||
TextColor="Black"/>
|
||||
<Label
|
||||
TextColor="SlateGray"
|
||||
Text="{Binding Statut}"/>
|
||||
|
||||
<StackLayout Margin="0,10" Orientation="Horizontal" VerticalOptions="EndAndExpand">
|
||||
<Image Source="empty_star.svg" WidthRequest="25" HeightRequest="25"/>
|
||||
<Image Source="empty_star.svg" WidthRequest="25" HeightRequest="25"/>
|
||||
<Image Source="empty_star.svg" WidthRequest="25" HeightRequest="25"/>
|
||||
<Image Source="empty_star.svg" WidthRequest="25" HeightRequest="25"/>
|
||||
<Image Source="empty_star.svg" WidthRequest="25" HeightRequest="25"/>
|
||||
</StackLayout>
|
||||
|
||||
</StackLayout>
|
||||
</Grid>
|
||||
<Rectangle Margin="25,0,0,10" HeightRequest="1" BackgroundColor="LightGray" VerticalOptions="End" />
|
||||
</StackLayout>
|
||||
</DataTemplate>
|
||||
</CollectionView.ItemTemplate>
|
||||
</CollectionView>
|
||||
</ContentView>
|
@ -0,0 +1,22 @@
|
||||
using BookApp.Model;
|
||||
using BookApp.Pages;
|
||||
using BookApp.ViewModel;
|
||||
|
||||
namespace BookApp.Composants
|
||||
{
|
||||
public partial class GroupCollection : ContentView
|
||||
{
|
||||
public GroupCollection()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private async void OnSelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||
{
|
||||
if (e.CurrentSelection.FirstOrDefault() is Book selectedItem)
|
||||
{
|
||||
await Navigation.PushAsync(new DetailBook(selectedItem));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,145 @@
|
||||
<?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:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
||||
x:Class="BookApp.MainPage">
|
||||
<Shell.TitleView>
|
||||
<Grid RowDefinitions="Auto">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Label
|
||||
Text="Modifier"
|
||||
FontFamily="Strande2"
|
||||
TextColor="Red"
|
||||
VerticalTextAlignment="Center"
|
||||
HorizontalOptions="Start"
|
||||
HeightRequest="50"
|
||||
FontSize="Medium"
|
||||
Grid.Column="0" />
|
||||
|
||||
<Image
|
||||
Source="plus_icone.svg"
|
||||
HorizontalOptions="End"
|
||||
Margin="0,0,20,0"
|
||||
Grid.Column="2">
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="Red" />
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
</Grid>
|
||||
</Shell.TitleView>
|
||||
|
||||
<Shell.BackButtonBehavior>
|
||||
<BackButtonBehavior IsVisible="False" IsEnabled="False" />
|
||||
</Shell.BackButtonBehavior>
|
||||
<StackLayout>
|
||||
<Label FontSize="35" FontFamily="SF-Pro-Display-Bold" Padding="10">Mes livres</Label>
|
||||
<Rectangle HeightRequest="1" BackgroundColor="black" VerticalOptions="End" />
|
||||
<CollectionView ItemsSource="{Binding MyCollections1}" Margin="25,0,0,0" BackgroundColor="#F9F9F9">
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Grid RowDefinitions="Auto" >
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="25"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Image Grid.Column="0"
|
||||
Source="{Binding Icone}"
|
||||
HeightRequest="25"
|
||||
WidthRequest="25"/>
|
||||
<Label FontFamily="SF-Compact-Display-Semibold" Grid.Column="1"
|
||||
Text="{Binding Name}"
|
||||
FontAttributes="Bold"
|
||||
Padding="5"
|
||||
VerticalOptions="Center"/>
|
||||
<Grid Grid.Column="2">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Label Grid.Column="2"
|
||||
Text="{Binding Number}"
|
||||
FontAttributes="Bold"
|
||||
VerticalOptions="Center"
|
||||
Margin="0,0,40,0"
|
||||
HorizontalOptions="End"/>
|
||||
<Button Grid.Column="2"
|
||||
ImageSource="chevron_right.svg"
|
||||
HeightRequest="35"
|
||||
WidthRequest="35"
|
||||
BackgroundColor="#F9F9F9"
|
||||
Clicked="ButtonTous"
|
||||
HorizontalOptions="End"/>
|
||||
</Grid>
|
||||
<Rectangle Grid.ColumnSpan="4" HeightRequest="1" BackgroundColor="LightGray" VerticalOptions="End">
|
||||
<Rectangle.Triggers>
|
||||
<DataTrigger TargetType="Rectangle" Binding="{Binding IsLastItem}" Value="true">
|
||||
<Setter Property="IsVisible" Value="False"/>
|
||||
</DataTrigger>
|
||||
</Rectangle.Triggers>
|
||||
</Rectangle>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</CollectionView.ItemTemplate>
|
||||
</CollectionView>
|
||||
|
||||
<Rectangle HeightRequest="1" BackgroundColor="black" VerticalOptions="End"/>
|
||||
<Label FontFamily="SF-Pro-Display-Heavy" FontSize="20" Padding="10">Filtres</Label>
|
||||
<Rectangle HeightRequest="1" BackgroundColor="black" VerticalOptions="End"/>
|
||||
|
||||
<CollectionView ItemsSource="{Binding MyCollections2}" Margin="25,0,0,0" BackgroundColor="#F9F9F9">
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Grid RowDefinitions="Auto" >
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="25" />
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Image Grid.Column="0"
|
||||
Source="{Binding Icone}"
|
||||
HeightRequest="25"
|
||||
WidthRequest="25"/>
|
||||
<Label FontFamily="SF-Compact-Display-Semibold" Grid.Column="1"
|
||||
Text="{Binding Name}"
|
||||
FontAttributes="Bold"
|
||||
Padding="5"
|
||||
VerticalOptions="Center"/>
|
||||
<Grid Grid.Column="2" >
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Label FontFamily="SF-Compact-Display-Semibold" Grid.Column="2"
|
||||
Text="{Binding Number}"
|
||||
FontAttributes="Bold"
|
||||
VerticalOptions="Center"
|
||||
Margin="0,0,40,0"
|
||||
HorizontalOptions="End"/>
|
||||
<Button Grid.Column="2"
|
||||
ImageSource="chevron_right.svg"
|
||||
HeightRequest="35"
|
||||
WidthRequest="35"
|
||||
BackgroundColor="#F9F9F9"
|
||||
Clicked="ButtonAuteur"
|
||||
HorizontalOptions="End"/>
|
||||
</Grid>
|
||||
<Rectangle Grid.ColumnSpan="4" HeightRequest="1" BackgroundColor="LightGray" VerticalOptions="End">
|
||||
<Rectangle.Triggers>
|
||||
<DataTrigger TargetType="Rectangle" Binding="{Binding IsLastItem}" Value="true">
|
||||
<Setter Property="IsVisible" Value="False"/>
|
||||
</DataTrigger>
|
||||
</Rectangle.Triggers>
|
||||
</Rectangle>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</CollectionView.ItemTemplate>
|
||||
</CollectionView>
|
||||
</StackLayout>
|
||||
</ContentPage>
|
@ -0,0 +1,192 @@
|
||||
<?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:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
||||
x:Class="BookApp.Pages.DetailBook">
|
||||
<Shell.BackButtonBehavior>
|
||||
<BackButtonBehavior IsVisible="False" IsEnabled="False"/>
|
||||
</Shell.BackButtonBehavior>
|
||||
<Shell.TitleView>
|
||||
<Grid RowDefinitions="Auto" VerticalOptions="Center">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<HorizontalStackLayout Grid.Column="0">
|
||||
<Image
|
||||
Source="Chevron_left.svg"
|
||||
HorizontalOptions="Start">
|
||||
<Image.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="BackButton" NumberOfTapsRequired="1"/>
|
||||
</Image.GestureRecognizers>
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="Red" />
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
|
||||
<Label
|
||||
Text="Tous"
|
||||
FontFamily="Strande2"
|
||||
TextColor="Red"
|
||||
FontSize="Medium"
|
||||
VerticalTextAlignment="Center"
|
||||
HorizontalOptions="Start"
|
||||
Grid.Column="0" />
|
||||
</HorizontalStackLayout>
|
||||
|
||||
<Label
|
||||
Text="Détails du livre"
|
||||
FontFamily="Strande2"
|
||||
TextColor="Black"
|
||||
FontSize="Medium"
|
||||
VerticalTextAlignment="Center"
|
||||
HorizontalOptions="Center"
|
||||
Grid.Column="1" />
|
||||
</Grid>
|
||||
</Shell.TitleView>
|
||||
<ContentPage.Content>
|
||||
<ScrollView>
|
||||
<StackLayout>
|
||||
<Rectangle HeightRequest="1" BackgroundColor="LightGray" VerticalOptions="End"/>
|
||||
<Grid RowDefinitions="auto">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="125"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Image Margin="10,10,10,0" Grid.Column="0" Source="{Binding BookDetail.ImageBook}"/>
|
||||
<StackLayout Grid.Column="1">
|
||||
<Label FontAttributes="Bold" FontSize="20" Text="{Binding BookDetail.Name}"/>
|
||||
<Grid RowDefinitions="auto" VerticalOptions="EndAndExpand">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<StackLayout x:Name="StarLayout" Grid.Column="0" Orientation="Horizontal" HorizontalOptions="CenterAndExpand" >
|
||||
<!-- Les étoiles seront ajoutées ici via le code-behind -->
|
||||
</StackLayout>
|
||||
<Label x:Name="RatingLabel" Grid.Column="1" FontSize="Medium" HorizontalOptions="CenterAndExpand"/>
|
||||
</Grid>
|
||||
</StackLayout>
|
||||
</Grid>
|
||||
<Rectangle Margin="25,10,0,0" HeightRequest="1" BackgroundColor="LightGray" VerticalOptions="End"/>
|
||||
<Grid>
|
||||
<Label FontAttributes="Bold" Margin="25,0,0,0" VerticalTextAlignment="Center" Text="Info en ligne"/>
|
||||
<Button Grid.Column="1"
|
||||
ImageSource="chevron_right.svg"
|
||||
HeightRequest="35"
|
||||
WidthRequest="35"
|
||||
BackgroundColor="White"
|
||||
HorizontalOptions="End"/>
|
||||
</Grid>
|
||||
<Rectangle Margin="25,0,0,10" HeightRequest="1" BackgroundColor="LightGray" VerticalOptions="End"/>
|
||||
<Label FontAttributes="Bold" Margin="25,0,0,0" VerticalTextAlignment="Center" Text="Auteur"/>
|
||||
<Label Margin="25,0,0,0" VerticalTextAlignment="Center" Text="{Binding BookDetail.Auteur.Name}"/>
|
||||
<Rectangle Margin="25,10,0,10" HeightRequest="1" BackgroundColor="LightGray" VerticalOptions="End"/>
|
||||
<Label FontAttributes="Bold" Margin="25,0,0,0" VerticalTextAlignment="Center" Text="Maison d'édition"/>
|
||||
<Label Margin="25,0,0,0" VerticalTextAlignment="Center" Text="{Binding BookDetail.MaisonEdit}"/>
|
||||
<Rectangle Margin="25,10,0,10" HeightRequest="1" BackgroundColor="LightGray" VerticalOptions="End"/>
|
||||
<Label FontAttributes="Bold" Margin="25,0,0,0" VerticalTextAlignment="Center" Text="Résumer"/>
|
||||
<Label Margin="25,0,0,0" VerticalTextAlignment="Center" Text="Le Lorem Ipsum est simplement du faux texte employé dans la composition et la mise en page avant impression. Le Lorem Ipsum est le faux texte standard de l'imprimerie depuis les années 1500, quand un imprimeur anonyme assembla ensemble des morceaux de texte pour réaliser un livre spécimen de polices de texte. Il n'a pas fait que survivre cinq siècles, mais s'est aussi adapté à la bureautique informatique, sans que son contenu n'en soit modifié. Il a été popularisé dans les années 1960 grâce à la vente de feuilles Letraset contenant des passages du Lorem Ipsum, et, plus récemment, par son inclusion dans des applications de mise en page de texte, comme Aldus PageMaker."/>
|
||||
<Rectangle Margin="25,10,0,10" HeightRequest="1" BackgroundColor="LightGray" VerticalOptions="End" />
|
||||
<Label FontAttributes="Bold" Margin="25,0,0,0" VerticalTextAlignment="Center" Text="Details"/>
|
||||
<Grid Margin="25,0,20,0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Label Grid.Row="0" Grid.Column="0" Text="Nombre de pages"/>
|
||||
<Label Grid.Row="0" Grid.Column="1" HorizontalTextAlignment="End" Text="{Binding BookDetail.NbPage}"/>
|
||||
<Label Grid.Row="1" Grid.Column="0" Text="Langue"/>
|
||||
<Label Grid.Row="1" Grid.Column="1" HorizontalTextAlignment="End" Text="{Binding BookDetail.Langue}"/>
|
||||
<Label Grid.Row="2" Grid.Column="0" Text="ISBN"/>
|
||||
<Label Grid.Row="2" Grid.Column="1" HorizontalTextAlignment="End" Text="{Binding BookDetail.ISBN}"/>
|
||||
</Grid>
|
||||
<Rectangle Margin="25,10,0,10" HeightRequest="1" BackgroundColor="LightGray" VerticalOptions="End" />
|
||||
<Label FontAttributes="Bold" Margin="25,0,0,0" VerticalTextAlignment="Center" Text="Status de lecture"/>
|
||||
<Grid RowDefinitions="auto" Margin="25,0,20,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Label Grid.Column="0" Text="Status"/>
|
||||
<Label Grid.Column="1" HorizontalTextAlignment="End" Text="{Binding BookDetail.Statut}"/>
|
||||
</Grid>
|
||||
<Rectangle Margin="25,10,0,10" HeightRequest="1" BackgroundColor="LightGray" VerticalOptions="End" />
|
||||
<Label FontAttributes="Bold" Margin="25,0,0,0" VerticalTextAlignment="Center" Text="biliothèque"/>
|
||||
<Grid RowDefinitions="auto" Margin="25,0,20,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Label Grid.Column="0" Text="Ajouter le"/>
|
||||
<Label Grid.Column="1" HorizontalTextAlignment="End" Text="{Binding BookDetail.dateAjout}"/>
|
||||
</Grid>
|
||||
<Rectangle Margin="25,10,0,10" HeightRequest="1" BackgroundColor="LightGray" VerticalOptions="End" />
|
||||
<Rectangle HeightRequest="100" Fill="Transparent"/>
|
||||
<Rectangle Margin="25,10,0,10" HeightRequest="1" BackgroundColor="LightGray" VerticalOptions="End" />
|
||||
<Grid RowDefinitions="auto" Margin="25,0,20,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="25"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Image Grid.Column="0" HeightRequest="25"
|
||||
WidthRequest="25" Source="folder.svg">
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="Red" />
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
<Label Margin="10,0,0,0" VerticalOptions="Center" Grid.Column="1" TextColor="Red" Text="Déplacer le livre"/>
|
||||
</Grid>
|
||||
<Rectangle Margin="25,10,0,10" HeightRequest="1" BackgroundColor="LightGray" VerticalOptions="End" />
|
||||
<Grid RowDefinitions="auto" Margin="25,0,20,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="25"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Image Grid.Column="0" HeightRequest="25"
|
||||
WidthRequest="25" Source="plus_circle.svg">
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="Red" />
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
<Label Margin="10,0,0,0" VerticalOptions="Center" Grid.Column="1" TextColor="Red" Text="Ajouter à la liste à lire plus tard"/>
|
||||
</Grid>
|
||||
<Rectangle Margin="25,10,0,10" HeightRequest="1" BackgroundColor="LightGray" VerticalOptions="End" />
|
||||
<Grid RowDefinitions="auto" Margin="25,0,20,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="25"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Image Grid.Column="0" HeightRequest="25"
|
||||
WidthRequest="25" Source="eyeglasses.svg">
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="Red" />
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
<Label Margin="10,0,0,0" VerticalOptions="Center" Grid.Column="1" TextColor="Red" Text="Changer le statut de lecture"/>
|
||||
</Grid>
|
||||
<Rectangle Margin="25,10,0,10" HeightRequest="1" BackgroundColor="LightGray" VerticalOptions="End" />
|
||||
<Grid RowDefinitions="auto" Margin="25,0,20,20">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="25"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Image Grid.Column="0" HeightRequest="25"
|
||||
WidthRequest="25" Source="person.svg">
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="Red" />
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
<Label Margin="10,0,0,0" VerticalOptions="Center" Grid.Column="1" TextColor="Red" Text="Prêter le livre"/>
|
||||
</Grid>
|
||||
<BoxView HeightRequest="1" BackgroundColor="LightGray" VerticalOptions="EndAndExpand" />
|
||||
</StackLayout>
|
||||
</ScrollView>
|
||||
</ContentPage.Content>
|
||||
</ContentPage>
|
@ -0,0 +1,68 @@
|
||||
using BookApp.Model;
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
namespace BookApp.Pages;
|
||||
|
||||
public partial class DetailBook : ContentPage
|
||||
{
|
||||
private int maxStars = 5;
|
||||
private int currentRating = 0;
|
||||
|
||||
public Book BookDetail { get; set; }
|
||||
|
||||
public DetailBook(Book ItemBook)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
for (int i = 1; i <= maxStars; i++)
|
||||
{
|
||||
var star = new Image
|
||||
{
|
||||
Source = "empty_star.svg", // image d'une étoile vide
|
||||
WidthRequest = 25,
|
||||
HeightRequest = 25
|
||||
};
|
||||
|
||||
int currentStar = i;
|
||||
|
||||
star.GestureRecognizers.Add(
|
||||
new TapGestureRecognizer { Command = new Command(() => StarTapped(currentStar)), }
|
||||
);
|
||||
StarLayout.Children.Add(star);
|
||||
}
|
||||
|
||||
UpdateStars();
|
||||
BookDetail = ItemBook;
|
||||
BindingContext = this;
|
||||
}
|
||||
|
||||
private void StarTapped(int rating)
|
||||
{
|
||||
if (rating > maxStars)
|
||||
{
|
||||
System.Diagnostics.Debug.WriteLine("Erreur : rating trop élevé!");
|
||||
return;
|
||||
}
|
||||
|
||||
currentRating = rating;
|
||||
UpdateStars();
|
||||
RatingLabel.Text = $"Note: {currentRating}/{maxStars}";
|
||||
}
|
||||
|
||||
private void UpdateStars()
|
||||
{
|
||||
for (int i = 0; i < maxStars; i++)
|
||||
{
|
||||
var star = (Image)StarLayout.Children[i];
|
||||
if (i < currentRating)
|
||||
star.Source = "filled_star.svg"; // image d'une étoile remplie
|
||||
else
|
||||
star.Source = "empty_star.svg";
|
||||
}
|
||||
}
|
||||
|
||||
async void BackButton(object sender, EventArgs args)
|
||||
{
|
||||
await Shell.Current.Navigation.PopAsync();
|
||||
}
|
||||
}
|
@ -0,0 +1,100 @@
|
||||
<?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="BookApp.Pages.EmpruntsPrets"
|
||||
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
||||
Title="EmpruntsPrets">
|
||||
<Shell.BackButtonBehavior>
|
||||
<BackButtonBehavior IsVisible="False" IsEnabled="False"/>
|
||||
</Shell.BackButtonBehavior>
|
||||
<Shell.TitleView>
|
||||
<Grid RowDefinitions="Auto" VerticalOptions="Center">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<HorizontalStackLayout Grid.Column="0">
|
||||
<Image
|
||||
Source="Chevron_left.svg"
|
||||
HorizontalOptions="Start">
|
||||
<Image.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="BackButton" NumberOfTapsRequired="1"/>
|
||||
</Image.GestureRecognizers>
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="Red" />
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
|
||||
<Label
|
||||
Text="Mes livres"
|
||||
FontFamily="Strande2"
|
||||
TextColor="Red"
|
||||
FontSize="Medium"
|
||||
VerticalTextAlignment="Center"
|
||||
HorizontalOptions="Start"
|
||||
Grid.Column="0" />
|
||||
</HorizontalStackLayout>
|
||||
|
||||
<Label
|
||||
Text="Tous"
|
||||
FontFamily="Strande2"
|
||||
TextColor="Black"
|
||||
FontSize="Medium"
|
||||
VerticalTextAlignment="Center"
|
||||
HorizontalOptions="Center"
|
||||
Grid.Column="1" />
|
||||
|
||||
<HorizontalStackLayout Grid.Column="2">
|
||||
<Image
|
||||
Source="plus_icone.svg"
|
||||
HorizontalOptions="End"
|
||||
Margin="0,0,20,0"
|
||||
Grid.Column="2">
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="Red" />
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
|
||||
<Image
|
||||
Source="arrow_up_arrow_down.svg"
|
||||
HorizontalOptions="End"
|
||||
Margin="0,0,10,0"
|
||||
Grid.Column="2">
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="Red" />
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
</HorizontalStackLayout>
|
||||
</Grid>
|
||||
</Shell.TitleView>
|
||||
<StackLayout>
|
||||
<ContentView>
|
||||
<ContentView.GestureRecognizers>
|
||||
<TapGestureRecognizer Command="{Binding TapCommand}" NumberOfTapsRequired="1" />
|
||||
</ContentView.GestureRecognizers>
|
||||
|
||||
<Grid WidthRequest="150" HeightRequest="50"
|
||||
BackgroundColor="LightGray"
|
||||
VerticalOptions="Center"
|
||||
HorizontalOptions="Center">
|
||||
|
||||
<!-- Le Switch -->
|
||||
<Switch x:Name="MySwitch" IsToggled="{Binding IsToggled}"
|
||||
HorizontalOptions="Start"
|
||||
VerticalOptions="Center"/>
|
||||
|
||||
<!-- Le Texte -->
|
||||
<Label Text="Mon Switch"
|
||||
VerticalOptions="Center"
|
||||
HorizontalOptions="Center"
|
||||
FontSize="16"
|
||||
TextColor="Black" />
|
||||
|
||||
</Grid>
|
||||
</ContentView>
|
||||
|
||||
|
||||
<!-- TODO with collection group on personn -->
|
||||
</StackLayout>
|
||||
</ContentPage>
|
@ -0,0 +1,35 @@
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace BookApp.Pages;
|
||||
|
||||
public partial class EmpruntsPrets : ContentPage
|
||||
{
|
||||
public ICommand TapCommand => new Command(ToggleSwitch);
|
||||
|
||||
private bool _isToggled;
|
||||
|
||||
public bool IsToggled
|
||||
{
|
||||
get => _isToggled;
|
||||
set
|
||||
{
|
||||
_isToggled = value;
|
||||
OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
public EmpruntsPrets()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
async void BackButton(object sender, EventArgs args)
|
||||
{
|
||||
await Shell.Current.Navigation.PopAsync();
|
||||
}
|
||||
|
||||
private void ToggleSwitch()
|
||||
{
|
||||
IsToggled = !IsToggled;
|
||||
}
|
||||
}
|
@ -0,0 +1,70 @@
|
||||
<?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:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
||||
xmlns:composants="clr-namespace:BookApp.Composants"
|
||||
x:Class="BookApp.Pages.Filtrage">
|
||||
<Shell.BackButtonBehavior>
|
||||
<BackButtonBehavior IsVisible="False" IsEnabled="False"/>
|
||||
</Shell.BackButtonBehavior>
|
||||
<Shell.TitleView>
|
||||
<Grid RowDefinitions="Auto" VerticalOptions="Center">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<HorizontalStackLayout Grid.Column="0">
|
||||
<Image
|
||||
Source="Chevron_left.svg"
|
||||
HorizontalOptions="Start">
|
||||
<Image.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="BackButton" NumberOfTapsRequired="1"/>
|
||||
</Image.GestureRecognizers>
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="Red" />
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
|
||||
<Label
|
||||
Text="Auteur"
|
||||
FontFamily="Strande2"
|
||||
TextColor="Red"
|
||||
FontSize="Medium"
|
||||
VerticalTextAlignment="Center"
|
||||
HorizontalOptions="Start"
|
||||
Grid.Column="0" />
|
||||
</HorizontalStackLayout>
|
||||
|
||||
<Label
|
||||
Text="Tous"
|
||||
FontFamily="Strande2"
|
||||
TextColor="Black"
|
||||
FontSize="Medium"
|
||||
VerticalTextAlignment="Center"
|
||||
HorizontalOptions="Center"
|
||||
Grid.Column="1" />
|
||||
|
||||
<HorizontalStackLayout Grid.Column="2">
|
||||
<Image
|
||||
Source="arrow_up_arrow_down.svg"
|
||||
HorizontalOptions="End"
|
||||
Margin="0,0,10,0"
|
||||
Grid.Column="2">
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="Red" />
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
</HorizontalStackLayout>
|
||||
</Grid>
|
||||
</Shell.TitleView>
|
||||
<ContentPage.Content>
|
||||
<StackLayout>
|
||||
<Rectangle HeightRequest="1" BackgroundColor="LightGray"/>
|
||||
<SearchBar Placeholder="Search items..."/>
|
||||
<Rectangle HeightRequest="1" BackgroundColor="LightGray"/>
|
||||
<composants:CollectionFiltrage VerticalOptions="FillAndExpand"/>
|
||||
</StackLayout>
|
||||
</ContentPage.Content>
|
||||
</ContentPage>
|
@ -0,0 +1,19 @@
|
||||
using BookApp.ViewModel;
|
||||
|
||||
namespace BookApp.Pages
|
||||
{
|
||||
public partial class Filtrage : ContentPage
|
||||
{
|
||||
SearchBar searchBar = new SearchBar { Placeholder = "Search items..." };
|
||||
|
||||
public Filtrage()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
async void BackButton(object sender, EventArgs args)
|
||||
{
|
||||
await Shell.Current.Navigation.PopAsync();
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,75 @@
|
||||
<?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:composants="clr-namespace:BookApp.Composants"
|
||||
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
||||
x:Class="BookApp.Pages.Tous">
|
||||
<Shell.BackButtonBehavior>
|
||||
<BackButtonBehavior IsVisible="False" IsEnabled="False"/>
|
||||
</Shell.BackButtonBehavior>
|
||||
<Shell.TitleView>
|
||||
<Grid RowDefinitions="Auto" VerticalOptions="Center">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<HorizontalStackLayout Grid.Column="0">
|
||||
<Image
|
||||
Source="Chevron_left.svg"
|
||||
HorizontalOptions="Start">
|
||||
<Image.GestureRecognizers>
|
||||
<TapGestureRecognizer Tapped="BackButton" NumberOfTapsRequired="1"/>
|
||||
</Image.GestureRecognizers>
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="Red" />
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
|
||||
<Label
|
||||
Text="Mes livres"
|
||||
FontFamily="Strande2"
|
||||
TextColor="Red"
|
||||
FontSize="Medium"
|
||||
VerticalTextAlignment="Center"
|
||||
HorizontalOptions="Start"
|
||||
Grid.Column="0" />
|
||||
</HorizontalStackLayout>
|
||||
|
||||
<Label
|
||||
Text="Tous"
|
||||
FontFamily="Strande2"
|
||||
TextColor="Black"
|
||||
FontSize="Medium"
|
||||
VerticalTextAlignment="Center"
|
||||
HorizontalOptions="Center"
|
||||
Grid.Column="1" />
|
||||
|
||||
<HorizontalStackLayout Grid.Column="2">
|
||||
<Image
|
||||
Source="plus_icone.svg"
|
||||
HorizontalOptions="End"
|
||||
Margin="0,0,20,0"
|
||||
Grid.Column="2">
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="Red" />
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
|
||||
<Image
|
||||
Source="arrow_up_arrow_down.svg"
|
||||
HorizontalOptions="End"
|
||||
Margin="0,0,10,0"
|
||||
Grid.Column="2">
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="Red" />
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
</HorizontalStackLayout>
|
||||
</Grid>
|
||||
</Shell.TitleView>
|
||||
<ContentPage.Content>
|
||||
<composants:GroupCollection/>
|
||||
</ContentPage.Content>
|
||||
</ContentPage>
|
Before Width: | Height: | Size: 228 B After Width: | Height: | Size: 228 B |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 785 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 703 B |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 465 B |
After Width: | Height: | Size: 560 B |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 343 B |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 179 B |