Remaniement du style + ajout de commentaire

pull/18/head
Leana BESSON 2 years ago
parent 6ad12bd37e
commit 397688e4c5

@ -12,11 +12,11 @@ namespace Model
{ {
List<Espece> ListeEspeces = new List<Espece>(); List<Espece> ListeEspeces = new List<Espece>();
List<Race> Races = new List<Race>(); List<Race> Races = new List<Race>();
Races.Add(new("Abyssin")); Races.Add(new("Abyssin", "", "", "", "", "", "", "", "", "", "Conseil Abyssin"));
Races.Add(new("American curl")); Races.Add(new("American curl"));
ListeEspeces.Add(new("Chien", "Canis lupus familiaris", "chien.jpg")); ListeEspeces.Add(new("Chien", "Canis lupus familiaris", "chien.jpg"));
ListeEspeces.Add(new("Chat", "Felis catus", "chat.jpg", "15 à 20 ans", "15 à 20 kg", "10 à 15 cm", Races, "Les chats ont un comportement très solitaire", "Les chats ont une bonne santé", "Les chats s'éduque assez facilement", "Il faut changé leur caisse mais il se nettoie seul, sauf les chatons", "Vétérinaire, alimentation adapté, jouet", "Un conseil")); ListeEspeces.Add(new("Chat", "Felis catus", "chat.jpg", "15 à 20 ans", "15 à 20 kg", "10 à 15 cm", Races, "Les chats ont un comportement très solitaire", "Les chats ont une bonne santé", "Les chats s'éduque assez facilement", "Il faut changé leur caisse mais il se nettoie seul, sauf les chatons", "Vétérinaire, alimentation adapté, jouet", "Un conseil pour un chat"));
ListeEspeces.Add(new("Hamster", "Cricetinae")); ListeEspeces.Add(new("Hamster", "Cricetinae"));
ListeEspeces.Add(new("Lapin", "Oryctolagus cuniculus")); ListeEspeces.Add(new("Lapin", "Oryctolagus cuniculus"));

@ -3,48 +3,47 @@
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit" xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
Title="Vos animaux"> Title="Wikipet's"
IconImageSource="{FontImage FontFamily=Raleway}">
<ScrollView> <ScrollView>
<!-- To manage the position of elements on the page -->
<toolkit:DockLayout> <toolkit:DockLayout>
<!-- To add a pet -->
<Button Text="+" <Button Text="+"
FontSize="Large"
Background="{StaticResource Primary}"
toolkit:DockLayout.DockPosition="Bottom" toolkit:DockLayout.DockPosition="Bottom"
VerticalOptions="End" VerticalOptions="End"
HorizontalOptions="End" HorizontalOptions="End"
Margin="20" Clicked="Button_OnClick"
Clicked="Button_OnClick"/> FontSize="30"
Padding="2"/>
<VerticalStackLayout> <VerticalStackLayout>
<Grid RowDefinitions="Auto, *" <Grid RowDefinitions="Auto, *"
RowSpacing="20"> RowSpacing="20">
<!-- To display the list of pets -->
<ListView ItemsSource="{Binding ListeAnimaux}" <ListView ItemsSource="{Binding ListeAnimaux}"
Grid.Row="1" Grid.Row="1"
ItemTapped="OnClick"> ItemTapped="OnClick">
<ListView.ItemTemplate> <ListView.ItemTemplate>
<DataTemplate> <DataTemplate>
<ViewCell> <ViewCell>
<Grid Margin="0,0,0,4"> <Grid Margin="0,10,0,10">
<Border Stroke="{StaticResource Secondary}" <Border>
StrokeThickness="2"
Margin="10"
Padding="10"
BackgroundColor="{StaticResource Primary}">
<Grid ColumnDefinitions="Auto, *" <Grid ColumnDefinitions="Auto, *"
RowDefinitions="3*" RowDefinitions="3*"
ColumnSpacing="15"> ColumnSpacing="15">
<Frame Grid.RowSpan="3" <!-- To display the image -->
HeightRequest="60" <Frame Grid.RowSpan="3">
WidthRequest="60"
Padding="0"
Margin="10"
BorderColor="{StaticResource Primary}">
<Image Source="{Binding Image}"/> <Image Source="{Binding Image}"/>
</Frame> </Frame>
<VerticalStackLayout Grid.Column="1"> <VerticalStackLayout Grid.Column="1">
<!-- To display the pet's name -->
<Label Text="{Binding Nom}" <Label Text="{Binding Nom}"
FontSize="Large"/> FontSize="Large"/>
<!-- To display species -->
<Label Text="{Binding Espece}" <Label Text="{Binding Espece}"
FontSize="12"/> FontSize="12"
FontFamily="Raleway"/>
</VerticalStackLayout> </VerticalStackLayout>
</Grid> </Grid>
</Border> </Border>

@ -4,24 +4,28 @@
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:Views" xmlns:local="clr-namespace:Views"
Shell.FlyoutBehavior="Flyout"> Shell.FlyoutBehavior="Disabled">
<ShellContent <!-- Page navigation bar -->
Title="Accueil" <TabBar>
<!-- Go to home page -->
<ShellContent Title="Accueil"
ContentTemplate="{DataTemplate local:MainPage}" ContentTemplate="{DataTemplate local:MainPage}"
Route="MainPage" /> Route="MainPage" />
<ShellContent <!-- To go to the species list -->
Title="Les espèces" <ShellContent Title="Les espèces"
ContentTemplate="{DataTemplate local:Especes}" ContentTemplate="{DataTemplate local:Especes}"
Route="Especes" /> Route="Especes" />
<ShellContent <!-- To go to the user's pet list -->
Title="Vos animaux" <ShellContent Title="Vos animaux"
ContentTemplate="{DataTemplate local:Animaux}" ContentTemplate="{DataTemplate local:Animaux}"
Route="Animaux"/> Route="Animaux"/>
</TabBar>
<ShellContent <!-- To go to the add a pet page without the page being in the navigation bar -->
<ShellContent Title="Ajout d'un animal"
ContentTemplate="{DataTemplate local:New_DetailAnimal}" ContentTemplate="{DataTemplate local:New_DetailAnimal}"
Route="New_DetailAnimal"/> Route="New_DetailAnimal"/>
</Shell> </Shell>

@ -2,29 +2,35 @@
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Views.DetailAnimal" x:Class="Views.DetailAnimal"
Title="{Binding Nom}" x:Name="page_creation"> Title="{Binding Nom}">
<ScrollView> <ScrollView>
<VerticalStackLayout> <VerticalStackLayout>
<HorizontalStackLayout <HorizontalStackLayout VerticalOptions="Start"
VerticalOptions="Start"
HorizontalOptions="End"> HorizontalOptions="End">
<!-- To delete the pet -->
<Button Text="Supprimer" <Button Text="Supprimer"
Background="{StaticResource Primary}"
Margin="20"
Clicked="Button_OnClick"/> Clicked="Button_OnClick"/>
</HorizontalStackLayout> </HorizontalStackLayout>
<!-- Pet image -->
<Image Source="{Binding Image}" <Image Source="{Binding Image}"
MaximumWidthRequest="300" MaximumWidthRequest="300"
Margin="20"
HorizontalOptions="Center"/> HorizontalOptions="Center"/>
<!-- To add or change the image -->
<Button Text="Ajouter photo" <Button Text="Ajouter photo"
Background="{StaticResource Primary}"
VerticalOptions="Center" VerticalOptions="Center"
HorizontalOptions="Center" HorizontalOptions="End"
Margin="20"
Clicked="TakePhoto"/> Clicked="TakePhoto"/>
<!-- Display and change pet name -->
<HorizontalStackLayout HorizontalOptions="Center">
<Label Text="Nom"
VerticalOptions="Center"/>
<Entry Text="{Binding Nom}" <Entry Text="{Binding Nom}"
HorizontalOptions="Center"> Margin="20,0,0,0">
<!-- To change the background if there is a name -->
<Entry.Triggers> <Entry.Triggers>
<DataTrigger TargetType="Entry" <DataTrigger TargetType="Entry"
Binding="{Binding NomIsValid}" Binding="{Binding NomIsValid}"
@ -34,68 +40,77 @@
<DataTrigger TargetType="Entry" <DataTrigger TargetType="Entry"
Binding="{Binding NomIsValid}" Binding="{Binding NomIsValid}"
Value="true"> Value="true">
<Setter Property="BackgroundColor" Value="{StaticResource White}" /> <Setter Property="BackgroundColor" Value="Transparent" />
</DataTrigger> </DataTrigger>
</Entry.Triggers> </Entry.Triggers>
</Entry> </Entry>
<Border Stroke="{StaticResource Secondary}" </HorizontalStackLayout>
StrokeThickness="2"
Margin="20"
Padding="10" <Border VerticalOptions="Start"
Background="{StaticResource Primary}" Grid.Column="1"
VerticalOptions="Start" Margin="0, 10, 0, 10">
Grid.Column="1">
<Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto, Auto, Auto, Auto, Auto" <Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto, Auto, Auto, Auto, Auto"
ColumnDefinitions="*, *" ColumnDefinitions="*, *"
RowSpacing="8"> RowSpacing="8">
<Label FontAttributes="Bold" <!-- Display and change date of birth -->
Text="Date de naissance"/> <Label Text="Date de naissance"/>
<DatePicker Grid.Column="1" <DatePicker Date="{Binding DateNaissance}"/>
MinimumDate="01/01/2000"
HorizontalOptions="End" <!-- Display and change gender -->
Date="{Binding DateNaissance}"/>
<Label Grid.Row="1" <Label Grid.Row="1"
FontAttributes="Bold"
Text="Sexe"/> Text="Sexe"/>
<Entry Grid.Column="1" <Picker Grid.Row="1"
Grid.Row="1" SelectedItem="{Binding Sexe}"
HorizontalOptions="End" SelectedIndexChanged="SexeClick">
Text="{Binding Sexe}"/> <Picker.Items>
<x:String>Femelle</x:String>
<x:String>Male</x:String>
</Picker.Items>
</Picker>
<!-- Display and change date of adoption -->
<Label Grid.Row="2" <Label Grid.Row="2"
FontAttributes="Bold"
Text="Date d'adoption"/> Text="Date d'adoption"/>
<DatePicker Grid.Column="1" <DatePicker Grid.Row="2"
Grid.Row="2"
MinimumDate="01/01/2000" MinimumDate="01/01/2000"
HorizontalOptions="End" HorizontalOptions="End"
Date="{Binding DateAdoption}"/> Date="{Binding DateAdoption}"/>
<!-- Display and change size -->
<Label Grid.Row="3" <Label Grid.Row="3"
FontAttributes="Bold"
Text="Taille"/> Text="Taille"/>
<HorizontalStackLayout Grid.Column="1" <HorizontalStackLayout Grid.Column="1"
Grid.Row="3" Grid.Row="3"
HorizontalOptions="End"> HorizontalOptions="End">
<Entry Text="{Binding Taille}"/> <Entry Text="{Binding Taille}"/>
<Label Text=" cm" VerticalOptions="Center"/> <Label Text="cm"
VerticalOptions="Center"
FontFamily="Raleway"
FontAttributes="None"/>
</HorizontalStackLayout> </HorizontalStackLayout>
<!-- Display and change weight -->
<Label Grid.Row="4" <Label Grid.Row="4"
FontAttributes="Bold"
Text="Poids"/> Text="Poids"/>
<HorizontalStackLayout Grid.Column="2" <HorizontalStackLayout Grid.Column="2"
Grid.Row="4" Grid.Row="4"
HorizontalOptions="End"> HorizontalOptions="End">
<Entry Text="{Binding Poids}"/> <Entry Text="{Binding Poids}"/>
<Label Text=" kg" VerticalOptions="Center"/> <Label Text=" kg"
VerticalOptions="Center"
FontFamily="Raleway"
FontAttributes="None"/>
</HorizontalStackLayout> </HorizontalStackLayout>
<!-- Display and change power supply -->
<Label Grid.Row="5" <Label Grid.Row="5"
FontAttributes="Bold"
Text="Alimentation"/> Text="Alimentation"/>
<Entry Grid.Column="2" <Entry Grid.Row="5"
Grid.Row="5"
HorizontalOptions="End"
Text="{Binding Alimentation}"/> Text="{Binding Alimentation}"/>
<!-- Display and change species -->
<Label Grid.Row="6" <Label Grid.Row="6"
FontAttributes="Bold"
Text="Espèce"/> Text="Espèce"/>
<Grid Grid.Row="6" <Grid Grid.Row="6"
Grid.Column="1" Grid.Column="1"
@ -103,17 +118,19 @@
RowDefinitions="Auto, Auto"> RowDefinitions="Auto, Auto">
<Label Text="{Binding Espece}" <Label Text="{Binding Espece}"
VerticalOptions="Start" VerticalOptions="Start"
HorizontalOptions="End"/>
<Picker Grid.Row="1"
HorizontalOptions="End" HorizontalOptions="End"
x:Name="Picker_especes" FontFamily="Raleway"
FontAttributes="None"/>
<Picker x:Name="Picker_especes"
Grid.Row="1"
ItemsSource="{Binding ListeEspeces}" ItemsSource="{Binding ListeEspeces}"
ItemDisplayBinding="{Binding Nom}" ItemDisplayBinding="{Binding Nom}"
SelectedIndexChanged="EspeceClic"> SelectedIndexChanged="EspeceClic">
</Picker> </Picker>
</Grid> </Grid>
<!-- Display and change breed -->
<Label Grid.Row="7" <Label Grid.Row="7"
FontAttributes="Bold"
Text="Race"/> Text="Race"/>
<Grid Grid.Row="7" <Grid Grid.Row="7"
Grid.Column="1" Grid.Column="1"
@ -121,9 +138,10 @@
RowDefinitions="Auto, Auto"> RowDefinitions="Auto, Auto">
<Label Text="{Binding Race}" <Label Text="{Binding Race}"
VerticalOptions="Start" VerticalOptions="Start"
HorizontalOptions="End"/>
<Picker Grid.Row="1"
HorizontalOptions="End" HorizontalOptions="End"
FontFamily="Raleway"
FontAttributes="None"/>
<Picker Grid.Row="1"
ItemsSource="{Binding Espece.ListeRaces}" ItemsSource="{Binding Espece.ListeRaces}"
ItemDisplayBinding="{Binding Nom}" ItemDisplayBinding="{Binding Nom}"
SelectedIndexChanged="RaceClic"> SelectedIndexChanged="RaceClic">
@ -132,247 +150,212 @@
</Grid> </Grid>
</Border> </Border>
<VerticalStackLayout
Margin="20"> <!-- Display and change petsitter -->
<VerticalStackLayout Margin="0, 10, 0, 10">
<Label Text="Petsitter" <Label Text="Petsitter"
FontSize="Large"/> FontSize="Large"/>
<Border Stroke="{StaticResource Secondary}" <Border>
StrokeThickness="2"
Padding="10"
Background="{StaticResource Primary}">
<Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto" <Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto"
ColumnDefinitions="*, *"> ColumnDefinitions="*, *">
<Label FontAttributes="Bold" <!-- Display and change petsitter's name -->
Text="Nom"/> <Label Text="Nom"/>
<Entry Grid.Column="1" <Entry Text="{Binding Petsitter.Nom}"/>
HorizontalOptions="End"
Text="{Binding Petsitter.Nom}"/> <!-- Display and change petsitter's address -->
<Label Grid.Row="1" <Label Grid.Row="1"
FontAttributes="Bold"
Text="Adresse"/> Text="Adresse"/>
<Entry Grid.Column="1" <Entry Grid.Row="1"
Grid.Row="1"
HorizontalOptions="End"
Text="{Binding Petsitter.Adresse}"/> Text="{Binding Petsitter.Adresse}"/>
<!-- Display and change petsitter's zip code -->
<Label Grid.Row="2" <Label Grid.Row="2"
FontAttributes="Bold"
Text="Code postal"/> Text="Code postal"/>
<Entry Grid.Column="1" <Entry Grid.Row="2"
Grid.Row="2"
HorizontalOptions="End"
Text="{Binding Petsitter.CodePostal}"/> Text="{Binding Petsitter.CodePostal}"/>
<!-- Display and change petsitter's city -->
<Label Grid.Row="3" <Label Grid.Row="3"
FontAttributes="Bold"
Text="Ville"/> Text="Ville"/>
<Entry Grid.Column="1" <Entry Grid.Row="3"
Grid.Row="3"
HorizontalOptions="End"
Text="{Binding Petsitter.Ville}"/> Text="{Binding Petsitter.Ville}"/>
<!-- Display and change petsitter's phone number -->
<Label Grid.Row="4" <Label Grid.Row="4"
FontAttributes="Bold"
Text="Numéro de téléphone"/> Text="Numéro de téléphone"/>
<Entry Grid.Column="1" <Entry Grid.Row="4"
Grid.Row="4"
HorizontalOptions="End"
Text="{Binding Petsitter.NumTel}"/> Text="{Binding Petsitter.NumTel}"/>
</Grid> </Grid>
</Border> </Border>
</VerticalStackLayout> </VerticalStackLayout>
<VerticalStackLayout <!-- Display and change kennel -->
Margin="20"> <VerticalStackLayout Margin="0, 10, 0, 10">
<Label Text="Chenil" <Label Text="Chenil"
FontSize="Large"/> FontSize="Large"/>
<Border Stroke="{StaticResource Secondary}" <Border>
StrokeThickness="2"
Padding="10"
Background="{StaticResource Primary}">
<Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto" <Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto"
ColumnDefinitions="*, *"> ColumnDefinitions="*, *">
<Label FontAttributes="Bold" <!-- Display and change kennel's name -->
Text="Nom"/> <Label Text="Nom"/>
<Entry Grid.Column="1" <Entry Text="{Binding Chenil.Nom}"/>
HorizontalOptions="End"
Text="{Binding Chenil.Nom}"/> <!-- Display and change kennel's address -->
<Label Grid.Row="1" <Label Grid.Row="1"
FontAttributes="Bold"
Text="Adresse"/> Text="Adresse"/>
<Entry Grid.Column="1" <Entry Grid.Row="1"
Grid.Row="1"
HorizontalOptions="End"
Text="{Binding Chenil.Adresse}"/> Text="{Binding Chenil.Adresse}"/>
<!-- Display and change kennel's zip code -->
<Label Grid.Row="2" <Label Grid.Row="2"
FontAttributes="Bold"
Text="Code postal"/> Text="Code postal"/>
<Entry Grid.Column="1" <Entry Grid.Row="2"
Grid.Row="2"
HorizontalOptions="End"
Text="{Binding Chenil.CodePostal}"/> Text="{Binding Chenil.CodePostal}"/>
<!-- Display and change kennel's city -->
<Label Grid.Row="3" <Label Grid.Row="3"
FontAttributes="Bold"
Text="Ville"/> Text="Ville"/>
<Entry Grid.Column="1" <Entry Grid.Row="3"
Grid.Row="3"
HorizontalOptions="End"
Text="{Binding Chenil.Ville}"/> Text="{Binding Chenil.Ville}"/>
<!-- Display and change kennel's phone number -->
<Label Grid.Row="4" <Label Grid.Row="4"
FontAttributes="Bold"
Text="Numéro de téléphone"/> Text="Numéro de téléphone"/>
<Entry Grid.Column="1" <Entry Grid.Row="4"
Grid.Row="4"
HorizontalOptions="End"
Text="{Binding Chenil.NumTel}"/> Text="{Binding Chenil.NumTel}"/>
</Grid> </Grid>
</Border> </Border>
</VerticalStackLayout> </VerticalStackLayout>
<VerticalStackLayout <!-- Display and change veterinarian -->
Margin="20"> <VerticalStackLayout Margin="0, 10, 0, 10">
<Label Text="Vétérinaire" <Label Text="Vétérinaire"
FontSize="Large"/> FontSize="Large"/>
<Border Stroke="{StaticResource Secondary}" <Border>
StrokeThickness="2"
Padding="10"
Background="{StaticResource Primary}">
<Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto, Auto" <Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto, Auto"
ColumnDefinitions="*, *"> ColumnDefinitions="*, *">
<Label FontAttributes="Bold" <!-- Display and change vet's name -->
Text="Nom"/> <Label Text="Nom"/>
<Entry Grid.Column="1" <Entry Text="{Binding Veterinaire.Nom}"/>
HorizontalOptions="End"
Text="{Binding Veterinaire.Nom}"/> <!-- Display and change vet's clinic -->
<Label Grid.Row="1" <Label Grid.Row="1"
FontAttributes="Bold"
Text="Clinique"/> Text="Clinique"/>
<Entry Grid.Column="1" <Entry Grid.Row="1"
Grid.Row="1"
HorizontalOptions="End"
Text="{Binding Veterinaire.Clinique}"/> Text="{Binding Veterinaire.Clinique}"/>
<!-- Display and change vet's address -->
<Label Grid.Row="2" <Label Grid.Row="2"
FontAttributes="Bold"
Text="Adresse"/> Text="Adresse"/>
<Entry Grid.Column="1" <Entry Grid.Row="2"
Grid.Row="2"
HorizontalOptions="End"
Text="{Binding Veterinaire.Adresse}"/> Text="{Binding Veterinaire.Adresse}"/>
<!-- Display and change vet's zip code -->
<Label Grid.Row="3" <Label Grid.Row="3"
FontAttributes="Bold"
Text="Code postal"/> Text="Code postal"/>
<Entry Grid.Column="1" <Entry Grid.Row="3"
Grid.Row="3"
HorizontalOptions="End"
Text="{Binding Veterinaire.CodePostal}"/> Text="{Binding Veterinaire.CodePostal}"/>
<!-- Display and change vet's city -->
<Label Grid.Row="4" <Label Grid.Row="4"
FontAttributes="Bold"
Text="Ville"/> Text="Ville"/>
<Entry Grid.Column="1" <Entry Grid.Row="4"
Grid.Row="4"
HorizontalOptions="End"
Text="{Binding Veterinaire.Ville}"/> Text="{Binding Veterinaire.Ville}"/>
<!-- Display and change vet's phone number -->
<Label Grid.Row="5" <Label Grid.Row="5"
FontAttributes="Bold"
Text="Numéro de téléphone"/> Text="Numéro de téléphone"/>
<Entry Grid.Column="1" <Entry Grid.Row="5"
Grid.Row="5"
HorizontalOptions="End"
Text="{Binding Veterinaire.NumTel}"/> Text="{Binding Veterinaire.NumTel}"/>
</Grid> </Grid>
</Border> </Border>
</VerticalStackLayout> </VerticalStackLayout>
<VerticalStackLayout <!-- Display and change food store -->
Margin="20"> <VerticalStackLayout Margin="0, 10, 0, 10">
<Label Text="Magasin alimentaire" <Label Text="Magasin alimentaire"
FontSize="Large"/> FontSize="Large"/>
<Border Stroke="{StaticResource Secondary}" <Border>
StrokeThickness="2"
Padding="10"
Background="{StaticResource Primary}">
<Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto" <Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto"
ColumnDefinitions="*, *"> ColumnDefinitions="*, *">
<Label FontAttributes="Bold" <!-- Display and change food store name -->
Text="Nom"/> <Label Text="Nom"/>
<Entry Grid.Column="1" <Entry Text="{Binding MagasinAlimentaire.Nom}"/>
HorizontalOptions="End"
Text="{Binding MagasinAlimentaire.Nom}"/> <!-- Display and change food store address -->
<Label Grid.Row="1" <Label Grid.Row="1"
FontAttributes="Bold"
Text="Adresse"/> Text="Adresse"/>
<Entry Grid.Column="1" <Entry Text="{Binding MagasinAlimentaire.Adresse}"/>
Grid.Row="1"
HorizontalOptions="End" <!-- Display and change food store zip code -->
Text="{Binding MagasinAlimentaire.Adresse}"/>
<Label Grid.Row="2" <Label Grid.Row="2"
FontAttributes="Bold"
Text="Code postal"/> Text="Code postal"/>
<Entry Grid.Column="1" <Entry Grid.Row="2"
Grid.Row="2"
HorizontalOptions="End"
Text="{Binding MagasinAlimentaire.CodePostal}"/> Text="{Binding MagasinAlimentaire.CodePostal}"/>
<!-- Display and change food store city -->
<Label Grid.Row="3" <Label Grid.Row="3"
FontAttributes="Bold"
Text="Ville"/> Text="Ville"/>
<Entry Grid.Column="1" <Entry Grid.Row="3"
Grid.Row="3"
HorizontalOptions="End"
Text="{Binding MagasinAlimentaire.Ville}"/> Text="{Binding MagasinAlimentaire.Ville}"/>
<!-- Display and change food store phone number -->
<Label Grid.Row="4" <Label Grid.Row="4"
FontAttributes="Bold"
Text="Numéro de téléphone"/> Text="Numéro de téléphone"/>
<Entry Grid.Column="1" <Entry Grid.Row="4"
Grid.Row="4"
HorizontalOptions="End"
Text="{Binding MagasinAlimentaire.NumTel}"/> Text="{Binding MagasinAlimentaire.NumTel}"/>
</Grid> </Grid>
</Border> </Border>
</VerticalStackLayout> </VerticalStackLayout>
<VerticalStackLayout <!-- Display and change provenance -->
Margin="20"> <VerticalStackLayout Margin="0, 10, 0, 10">
<Label Text="Refuge, élevage, chenil de provenance" <Label Text="Refuge, élevage, chenil de provenance"
FontSize="Large"/> FontSize="Large"/>
<Border Stroke="{StaticResource Secondary}" <Border>
StrokeThickness="2"
Padding="10"
Background="{StaticResource Primary}">
<Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto" <Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto"
ColumnDefinitions="*, *"> ColumnDefinitions="*, *">
<Label FontAttributes="Bold" <!-- Display and change provenance's name -->
Text="Nom"/> <Label Text="Nom"/>
<Entry Grid.Column="1" <Entry Text="{Binding Provenance.Nom}"/>
HorizontalOptions="End"
Text="{Binding Provenance.Nom}"/> <!-- Display and change provenance's address -->
<Label Grid.Row="1" <Label Grid.Row="1"
FontAttributes="Bold"
Text="Adresse"/> Text="Adresse"/>
<Entry Grid.Column="1" <Entry Grid.Row="1"
Grid.Row="1"
HorizontalOptions="End"
Text="{Binding Provenance.Adresse}"/> Text="{Binding Provenance.Adresse}"/>
<!-- Display and change provenance's zip code -->
<Label Grid.Row="2" <Label Grid.Row="2"
FontAttributes="Bold"
Text="Code postal"/> Text="Code postal"/>
<Entry Grid.Column="1" <Entry Grid.Row="2"
Grid.Row="2"
HorizontalOptions="End"
Text="{Binding Provenance.CodePostal}"/> Text="{Binding Provenance.CodePostal}"/>
<!-- Display and change provenance's city -->
<Label Grid.Row="3" <Label Grid.Row="3"
FontAttributes="Bold"
Text="Ville"/> Text="Ville"/>
<Entry Grid.Column="1" <Entry Grid.Row="3"
Grid.Row="3"
HorizontalOptions="End"
Text="{Binding Provenance.Ville}"/> Text="{Binding Provenance.Ville}"/>
<!-- Display and change provenance's phone number -->
<Label Grid.Row="4" <Label Grid.Row="4"
FontAttributes="Bold"
Text="Numéro de téléphone"/> Text="Numéro de téléphone"/>
<Entry Grid.Column="1" <Entry Grid.Row="4"
Grid.Row="4"
HorizontalOptions="End"
Text="{Binding Provenance.NumTel}"/> Text="{Binding Provenance.NumTel}"/>
</Grid> </Grid>
</Border> </Border>
</VerticalStackLayout> </VerticalStackLayout>
<VerticalStackLayout x:Name="PetAdvice"
Margin="0,10,0,10">
<Label Text="Conseils"
FontSize="Large"/>
<Border>
<Label Text="{Binding Conseil}"
FontAttributes="None"
FontFamily="Raleway"/>
</Border>
</VerticalStackLayout>
</VerticalStackLayout> </VerticalStackLayout>
</ScrollView> </ScrollView>
</ContentPage> </ContentPage>

@ -10,6 +10,14 @@ public partial class DetailAnimal : ContentPage
InitializeComponent(); InitializeComponent();
BindingContext = (App.Current as App).AnimalSelectionner; BindingContext = (App.Current as App).AnimalSelectionner;
Picker_especes.BindingContext = (App.Current as App).Theque; Picker_especes.BindingContext = (App.Current as App).Theque;
if((App.Current as App).AnimalSelectionner.Espece != null)
{
if ((App.Current as App).AnimalSelectionner.Race != null)
{
PetAdvice.BindingContext = (App.Current as App).AnimalSelectionner.Race;
}
else PetAdvice.BindingContext = (App.Current as App).AnimalSelectionner.Espece;
}
} }
public async void Button_OnClick(object sender, EventArgs e) public async void Button_OnClick(object sender, EventArgs e)
@ -18,7 +26,6 @@ public partial class DetailAnimal : ContentPage
DataSerializerXML.Serializer((App.Current as App).SerializationPath, (App.Current as App).Theque); DataSerializerXML.Serializer((App.Current as App).SerializationPath, (App.Current as App).Theque);
await Shell.Current.GoToAsync("//Animaux"); await Shell.Current.GoToAsync("//Animaux");
} }
private void EspeceClic(object sender, EventArgs e) private void EspeceClic(object sender, EventArgs e)
{ {
(App.Current as App).AnimalSelectionner.Espece = (sender as Picker).SelectedItem as Espece; (App.Current as App).AnimalSelectionner.Espece = (sender as Picker).SelectedItem as Espece;
@ -56,8 +63,12 @@ public partial class DetailAnimal : ContentPage
} }
protected override bool OnBackButtonPressed() protected override bool OnBackButtonPressed()
{
if((App.Current as App).AnimalSelectionner.NomIsValid == true)
{ {
DataSerializerXML.Serializer((App.Current as App).SerializationPath, (App.Current as App).Theque); DataSerializerXML.Serializer((App.Current as App).SerializationPath, (App.Current as App).Theque);
return base.OnBackButtonPressed(); return base.OnBackButtonPressed();
} }
return true;
}
} }

@ -1,127 +1,135 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<!-- To diplay species name -->
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Views.DetailEspece" x:Class="Views.DetailEspece"
Title="{Binding Nom}"> Title="{Binding Nom}"
IconImageSource="{FontImage FontFamily=Raleway}">
<ScrollView> <ScrollView>
<VerticalStackLayout> <VerticalStackLayout>
<!-- To diplay species image -->
<Image Source="{Binding Image}" <Image Source="{Binding Image}"
MaximumWidthRequest="300" MaximumWidthRequest="300"
Margin="20" Margin="20"
HorizontalOptions="Center"/> HorizontalOptions="Center"/>
<Border Stroke="{StaticResource Secondary}" <Border VerticalOptions="Start"
StrokeThickness="2" Grid.Column="1"
Margin="20" Margin="0,10,0,10">
Padding="10"
Background="{StaticResource Primary}"
VerticalOptions="Start"
Grid.Column="1">
<Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto" <Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto"
ColumnDefinitions="*, *" ColumnDefinitions="*, *"
RowSpacing="8"> RowSpacing="8">
<Label FontAttributes="Bold" <!-- To diplay species scientific name -->
Text="Nom scientifique"/> <Label Text="Nom scientifique"/>
<Label Grid.Column="1" <Label Grid.Column="1"
HorizontalOptions="End" HorizontalOptions="End"
Text="{Binding NomScientifique}"/> Text="{Binding NomScientifique}"
FontAttributes="None"
FontFamily="Raleway"/>
<!-- To diplay species life expectancy -->
<Label Grid.Row="1" <Label Grid.Row="1"
FontAttributes="Bold"
Text="Espérance de vie"/> Text="Espérance de vie"/>
<Label Grid.Column="2" <Label Grid.Column="2"
Grid.Row="1" Grid.Row="1"
HorizontalOptions="End" HorizontalOptions="End"
Text="{Binding EsperanceVie}"/> Text="{Binding EsperanceVie}"
FontAttributes="None"
FontFamily="Raleway"/>
<!-- To diplay species average weight -->
<Label Grid.Row="2" <Label Grid.Row="2"
FontAttributes="Bold"
Text="Poids moyen"/> Text="Poids moyen"/>
<Label Grid.Column="2" <Label Grid.Column="2"
Grid.Row="2" Grid.Row="2"
HorizontalOptions="End" HorizontalOptions="End"
Text="{Binding PoidsMoyen}"/> Text="{Binding PoidsMoyen}"
FontAttributes="None"
FontFamily="Raleway"/>
<!-- To diplay species average height -->
<Label Grid.Row="3" <Label Grid.Row="3"
FontAttributes="Bold"
Text="Taille moyenne"/> Text="Taille moyenne"/>
<Label Grid.Column="2" <Label Grid.Column="2"
Grid.Row="3" Grid.Row="3"
HorizontalOptions="End" HorizontalOptions="End"
Text="{Binding TailleMoyenne}"/> Text="{Binding TailleMoyenne}"
FontAttributes="None"
FontFamily="Raleway"/>
</Grid> </Grid>
</Border> </Border>
<VerticalStackLayout <!-- To diplay information on the species behavior -->
Margin="20"> <VerticalStackLayout Margin="0,10,0,10">
<Label Text="Comportement" <Label Text="Comportement"
FontSize="Large"/> FontSize="Large"/>
<Border Stroke="{StaticResource Secondary}" <Border>
StrokeThickness="2" <Label Text="{Binding Comportement}"
Padding="10" FontAttributes="None"
Background="{StaticResource Primary}"> FontFamily="Raleway"/>
<Label Text="{Binding Comportement}"/>
</Border> </Border>
</VerticalStackLayout> </VerticalStackLayout>
<VerticalStackLayout <!-- To diplay information on the species health -->
Margin="20"> <VerticalStackLayout Margin="0,10,0,10">
<Label Text="Santé" <Label Text="Santé"
FontSize="Large"/> FontSize="Large"/>
<Border Stroke="{StaticResource Secondary}" <Border>
StrokeThickness="2" <Label Text="{Binding Sante}"
Padding="10" FontAttributes="None"
Background="{StaticResource Primary}"> FontFamily="Raleway"/>
<Label Text="{Binding Sante}"/>
</Border> </Border>
</VerticalStackLayout> </VerticalStackLayout>
<VerticalStackLayout <!-- To diplay information on the species education -->
Margin="20"> <VerticalStackLayout Margin="0,10,0,10">
<Label Text="Education" <Label Text="Education"
FontSize="Large"/> FontSize="Large"/>
<Border Stroke="{StaticResource Secondary}" <Border>
StrokeThickness="2" <Label Text="{Binding Education}"
Padding="10" FontAttributes="None"
Background="{StaticResource Primary}"> FontFamily="Raleway"/>
<Label Text="{Binding Education}"/>
</Border> </Border>
</VerticalStackLayout> </VerticalStackLayout>
<VerticalStackLayout <!-- To diplay information on the species maintenance -->
Margin="20"> <VerticalStackLayout Margin="0,10,0,10">
<Label Text="Entretien" <Label Text="Entretien"
FontSize="Large"/> FontSize="Large"/>
<Border Stroke="{StaticResource Secondary}" <Border>
StrokeThickness="2" <Label Text="{Binding Entretien}"
Padding="10" FontAttributes="None"
Background="{StaticResource Primary}"> FontFamily="Raleway"/>
<Label Text="{Binding Entretien}"/>
</Border> </Border>
</VerticalStackLayout> </VerticalStackLayout>
<VerticalStackLayout Margin="20"> <!-- To diplay information on the species cost -->
<VerticalStackLayout Margin="0,10,0,10">
<Label Text="Coût potentiel" <Label Text="Coût potentiel"
FontSize="Large"/> FontSize="Large"/>
<Border Stroke="{StaticResource Secondary}" <Border>
StrokeThickness="2" <Label Text="{Binding Cout}"
Padding="10" FontAttributes="None"
Background="{StaticResource Primary}"> FontFamily="Raleway"/>
<Label Text="{Binding Cout}"/>
</Border> </Border>
</VerticalStackLayout> </VerticalStackLayout>
<VerticalStackLayout Margin="20"> <!-- To diplay species advice -->
<VerticalStackLayout Margin="0,10,0,10">
<Label Text="Conseils" <Label Text="Conseils"
FontSize="Large"/> FontSize="Large"/>
<Border Stroke="{StaticResource Secondary}" <Border>
StrokeThickness="2" <Label Text="{Binding Conseil}"
Padding="10" FontAttributes="None"
Background="{StaticResource Primary}"> FontFamily="Raleway"/>
<Label Text="{Binding Conseil}"/>
</Border> </Border>
</VerticalStackLayout> </VerticalStackLayout>
<!-- To display the list of species breeds -->
<Grid RowDefinitions="Auto, *" <Grid RowDefinitions="Auto, *"
RowSpacing="20" RowSpacing="20"
Padding="20"> Margin="0,10,0,0">
<Label Text="Les races" <Label Text="Les Races"
FontSize="Large"/> FontSize="Large"/>
<ListView ItemsSource="{Binding ListeRaces}" <ListView ItemsSource="{Binding ListeRaces}"
Grid.Row="1" Grid.Row="1"
@ -129,28 +137,23 @@ FontSize="Large"/>
<ListView.ItemTemplate> <ListView.ItemTemplate>
<DataTemplate> <DataTemplate>
<ViewCell> <ViewCell>
<Grid Margin="0,0,0,4"> <Grid Margin="0,10,0,10">
<Border Stroke="{StaticResource Secondary}" <Border>
StrokeThickness="2"
Margin="10"
Padding="10"
BackgroundColor="{StaticResource Primary}">
<Grid ColumnDefinitions="Auto, *" <Grid ColumnDefinitions="Auto, *"
RowDefinitions="3*" RowDefinitions="3*"
ColumnSpacing="15"> ColumnSpacing="15">
<Frame Grid.RowSpan="3" <!-- To display the image -->
HeightRequest="60" <Frame Grid.RowSpan="3">
WidthRequest="60"
Padding="0"
Margin="10"
BorderColor="{StaticResource Primary}">
<Image Source="{Binding Image}"/> <Image Source="{Binding Image}"/>
</Frame> </Frame>
<VerticalStackLayout Grid.Column="1"> <VerticalStackLayout Grid.Column="1">
<!-- To display the breed name -->
<Label Text="{Binding Nom}" <Label Text="{Binding Nom}"
FontSize="Large"/> FontSize="Large"/>
<!-- To display the breed scientific name -->
<Label Text="{Binding NomScientifique}" <Label Text="{Binding NomScientifique}"
FontSize="12"/> FontSize="12"
FontFamily="Raleway"/>
</VerticalStackLayout> </VerticalStackLayout>
</Grid> </Grid>
</Border> </Border>

@ -1,120 +1,127 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<!-- To diplay breed name -->
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Views.DetailRace" x:Class="Views.DetailRace"
Title="{Binding Nom}"> Title="{Binding Nom}"
IconImageSource="{FontImage FontFamily=Raleway}">
<ScrollView> <ScrollView>
<VerticalStackLayout> <VerticalStackLayout>
<!-- To diplay breed image -->
<Image Source="{Binding Image}" <Image Source="{Binding Image}"
MaximumWidthRequest="300" MaximumWidthRequest="300"
Margin="20" Margin="20"
HorizontalOptions="Center"/> HorizontalOptions="Center"/>
<Border Stroke="{StaticResource Secondary}" <Border VerticalOptions="Start"
StrokeThickness="2" Grid.Column="1"
Margin="20" Margin="0,10,0,10">
Padding="10"
Background="{StaticResource Primary}"
VerticalOptions="Start"
Grid.Column="1">
<Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto" <Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto"
ColumnDefinitions="*, *" ColumnDefinitions="*, *"
RowSpacing="8"> RowSpacing="8">
<Label FontAttributes="Bold" <!-- To diplay breed scientific name -->
Text="Nom scientifique"/> <Label Text="Nom scientifique"/>
<Label Grid.Column="1" <Label Grid.Column="1"
HorizontalOptions="End" HorizontalOptions="End"
Text="{Binding NomScientifique}"/> Text="{Binding NomScientifique}"
FontAttributes="None"
FontFamily="Raleway"/>
<!-- To diplay breed life expectancy -->
<Label Grid.Row="1" <Label Grid.Row="1"
FontAttributes="Bold"
Text="Espérance de vie"/> Text="Espérance de vie"/>
<Label Grid.Column="2" <Label Grid.Column="2"
Grid.Row="1" Grid.Row="1"
HorizontalOptions="End" HorizontalOptions="End"
Text="{Binding EsperanceVie}"/> Text="{Binding EsperanceVie}"
FontAttributes="None"
FontFamily="Raleway"/>
<!-- To diplay breed average weight -->
<Label Grid.Row="2" <Label Grid.Row="2"
FontAttributes="Bold"
Text="Poids moyen"/> Text="Poids moyen"/>
<Label Grid.Column="2" <Label Grid.Column="2"
Grid.Row="2" Grid.Row="2"
HorizontalOptions="End" HorizontalOptions="End"
Text="{Binding PoidsMoyen}"/> Text="{Binding PoidsMoyen}"
FontAttributes="None"
FontFamily="Raleway"/>
<!-- To diplay breed average height -->
<Label Grid.Row="3" <Label Grid.Row="3"
FontAttributes="Bold"
Text="Taille moyenne"/> Text="Taille moyenne"/>
<Label Grid.Column="2" <Label Grid.Column="2"
Grid.Row="3" Grid.Row="3"
HorizontalOptions="End" HorizontalOptions="End"
Text="{Binding TailleMoyenne}"/> Text="{Binding TailleMoyenne}"
FontAttributes="None"
FontFamily="Raleway"/>
</Grid> </Grid>
</Border> </Border>
<VerticalStackLayout <!-- To diplay information on the breed behavior -->
Margin="20"> <VerticalStackLayout Margin="0,10,0,10">
<Label Text="Comportement" <Label Text="Comportement"
FontSize="Large"/> FontSize="Large"/>
<Border Stroke="{StaticResource Secondary}" <Border>
StrokeThickness="2" <Label Text="{Binding Comportement}"
Padding="10" FontAttributes="None"
Background="{StaticResource Primary}"> FontFamily="Raleway"/>
<Label Text="{Binding Comportement}"/>
</Border> </Border>
</VerticalStackLayout> </VerticalStackLayout>
<VerticalStackLayout <!-- To diplay information on the breed health -->
Margin="20"> <VerticalStackLayout Margin="0,10,0,10">
<Label Text="Santé" <Label Text="Santé"
FontSize="Large"/> FontSize="Large"/>
<Border Stroke="{StaticResource Secondary}" <Border>
StrokeThickness="2" <Label Text="{Binding Sante}"
Padding="10" FontAttributes="None"
Background="{StaticResource Primary}"> FontFamily="Raleway"/>
<Label Text="{Binding Sante}"/>
</Border> </Border>
</VerticalStackLayout> </VerticalStackLayout>
<VerticalStackLayout <!-- To diplay information on the breed education -->
Margin="20"> <VerticalStackLayout Margin="0,10,0,10">
<Label Text="Education" <Label Text="Education"
FontSize="Large"/> FontSize="Large"/>
<Border Stroke="{StaticResource Secondary}" <Border>
StrokeThickness="2" <Label Text="{Binding Education}"
Padding="10" FontAttributes="None"
Background="{StaticResource Primary}"> FontFamily="Raleway"/>
<Label Text="{Binding Education}"/>
</Border> </Border>
</VerticalStackLayout> </VerticalStackLayout>
<VerticalStackLayout <!-- To diplay information on the breed maintenance -->
Margin="20"> <VerticalStackLayout Margin="0,10,0,10">
<Label Text="Entretien" <Label Text="Entretien"
FontSize="Large"/> FontSize="Large"/>
<Border Stroke="{StaticResource Secondary}" <Border>
StrokeThickness="2" <Label Text="{Binding Entretien}"
Padding="10" FontAttributes="None"
Background="{StaticResource Primary}"> FontFamily="Raleway"/>
<Label Text="{Binding Entretien}"/>
</Border> </Border>
</VerticalStackLayout> </VerticalStackLayout>
<VerticalStackLayout Margin="20"> <!-- To diplay information on the breed cost -->
<VerticalStackLayout Margin="0,10,0,10">
<Label Text="Coût potentiel" <Label Text="Coût potentiel"
FontSize="Large"/> FontSize="Large"/>
<Border Stroke="{StaticResource Secondary}" <Border>
StrokeThickness="2" <Label Text="{Binding Cout}"
Padding="10" FontAttributes="None"
Background="{StaticResource Primary}"> FontFamily="Raleway"/>
<Label Text="{Binding Cout}"/>
</Border> </Border>
</VerticalStackLayout> </VerticalStackLayout>
<VerticalStackLayout Margin="20"> <!-- To diplay breed advice -->
<VerticalStackLayout Margin="0,10,0,10">
<Label Text="Conseils" <Label Text="Conseils"
FontSize="Large"/> FontSize="Large"/>
<Border Stroke="{StaticResource Secondary}" <Border>
StrokeThickness="2" <Label Text="{Binding Conseil}"
Padding="10" FontAttributes="None"
Background="{StaticResource Primary}"> FontFamily="Raleway"/>
<Label Text="{Binding Conseil}"/>
</Border> </Border>
</VerticalStackLayout> </VerticalStackLayout>
</VerticalStackLayout> </VerticalStackLayout>

@ -2,38 +2,34 @@
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Views.Especes" x:Class="Views.Especes"
Title="Les espèces"> Title="Wikipet's">
<ScrollView>
<Grid RowDefinitions="Auto, *" <Grid RowDefinitions="Auto, *"
RowSpacing="20" RowSpacing="20">
Padding="20"> <!-- To display the list of species -->
<ListView ItemsSource="{Binding ListeEspeces}" <ListView ItemsSource="{Binding ListeEspeces}"
Grid.Row="1" Grid.Row="1"
ItemTapped="OnClick"> ItemTapped="OnClick">
<ListView.ItemTemplate> <ListView.ItemTemplate>
<DataTemplate> <DataTemplate>
<ViewCell> <ViewCell>
<Grid Margin="0,0,0,4"> <Grid Margin="0,10,0,10">
<Border Stroke="{StaticResource Secondary}" <Border>
StrokeThickness="2"
Margin="10"
Padding="10"
BackgroundColor="{StaticResource Primary}">
<Grid ColumnDefinitions="Auto, *" <Grid ColumnDefinitions="Auto, *"
RowDefinitions="3*" RowDefinitions="3*"
ColumnSpacing="15"> ColumnSpacing="15">
<Frame Grid.RowSpan="3" <!-- To display the image -->
HeightRequest="60" <Frame Grid.RowSpan="3">
WidthRequest="60"
Padding="0"
Margin="10"
BorderColor="{StaticResource Primary}">
<Image Source="{Binding Image}"/> <Image Source="{Binding Image}"/>
</Frame> </Frame>
<VerticalStackLayout Grid.Column="1"> <VerticalStackLayout Grid.Column="1">
<!-- To display the species' name -->
<Label Text="{Binding Nom}" <Label Text="{Binding Nom}"
FontSize="Large"/> FontSize="Large"/>
<!-- To display the species' scientific name -->
<Label Text="{Binding NomScientifique}" <Label Text="{Binding NomScientifique}"
FontSize="12"/> FontSize="12"
FontFamily="Raleway"/>
</VerticalStackLayout> </VerticalStackLayout>
</Grid> </Grid>
</Border> </Border>
@ -43,4 +39,5 @@
</ListView.ItemTemplate> </ListView.ItemTemplate>
</ListView> </ListView>
</Grid> </Grid>
</ScrollView>
</ContentPage> </ContentPage>

@ -3,20 +3,27 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit" xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
xmlns:local="clr-namespace:Views" xmlns:local="clr-namespace:Views"
x:Class="Views.MainPage"> x:Class="Views.MainPage"
Title="Wikipet's"
IconImageSource="{FontImage FontFamily=Raleway}">
<ScrollView>
<VerticalStackLayout> <VerticalStackLayout>
<!-- To display the home image -->
<Image Source="accueil.png" <Image Source="accueil.png"
MaximumWidthRequest="200" MaximumWidthRequest="200"/>
Margin="20"
/> <!-- To display the welcome message -->
<Label HorizontalOptions="Center" <Label HorizontalOptions="Center"
FontSize="Large" FontSize="Large"
Text="Bienvenue sur Wikipet's" Text="Bienvenue sur Wikipet's"/>
FontFamily="DMSerifDisplay"/>
<!-- To display a description of the application -->
<Label MaximumWidthRequest="350" <Label MaximumWidthRequest="350"
HorizontalOptions="Center" HorizontalOptions="Center"
HorizontalTextAlignment="Center" HorizontalTextAlignment="Center"
FontFamily="DMSerifDisplay" FontFamily="Raleway"
FontAttributes="None"
Text="Notre application va vous permettre de découvrir l'animal de compagnie qui convient le mieux à vous et votre quotidien. Une fois l'animal adopté, vous pourrez sauvegardé tous les informations dont vous avez besoin."/> Text="Notre application va vous permettre de découvrir l'animal de compagnie qui convient le mieux à vous et votre quotidien. Une fois l'animal adopté, vous pourrez sauvegardé tous les informations dont vous avez besoin."/>
</VerticalStackLayout> </VerticalStackLayout>
</ScrollView>
</ContentPage> </ContentPage>

@ -13,8 +13,6 @@ namespace Views
.UseMauiCommunityToolkit() .UseMauiCommunityToolkit()
.ConfigureFonts(fonts => .ConfigureFonts(fonts =>
{ {
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
fonts.AddFont("DMSerifDisplay-Regular.ttf", "DMSerifDisplay"); fonts.AddFont("DMSerifDisplay-Regular.ttf", "DMSerifDisplay");
fonts.AddFont("Raleway-Light.ttf", "Raleway"); fonts.AddFont("Raleway-Light.ttf", "Raleway");
}); });

@ -2,33 +2,39 @@
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Views.New_DetailAnimal" x:Class="Views.New_DetailAnimal"
Title="{Binding Nom}" x:Name="page_creation"> x:Name="page_creation">
<ScrollView x:Name="scroll_view"> <ScrollView>
<VerticalStackLayout> <VerticalStackLayout>
<HorizontalStackLayout <HorizontalStackLayout VerticalOptions="Start"
VerticalOptions="Start"
HorizontalOptions="End"> HorizontalOptions="End">
<!-- To validate the addition of the pet -->
<Button Text="Valider" <Button Text="Valider"
Background="{StaticResource Primary}"
Margin="20"
Clicked="Validate_OnClick"/> Clicked="Validate_OnClick"/>
<!-- To delete the pet -->
<Button Text="Supprimer" <Button Text="Supprimer"
Background="{StaticResource Primary}"
Margin="20"
Clicked="Button_OnClick"/> Clicked="Button_OnClick"/>
</HorizontalStackLayout> </HorizontalStackLayout>
<!-- Pet image -->
<Image Source="{Binding Image}" <Image Source="{Binding Image}"
MaximumWidthRequest="300" MaximumWidthRequest="300"
Margin="20"
HorizontalOptions="Center"/> HorizontalOptions="Center"/>
<!-- To add or change the image -->
<Button Text="Ajouter photo" <Button Text="Ajouter photo"
Background="{StaticResource Primary}"
VerticalOptions="Center" VerticalOptions="Center"
HorizontalOptions="Center" HorizontalOptions="End"
Margin="20"
Clicked="TakePhoto"/> Clicked="TakePhoto"/>
<!-- Display and change pet name -->
<HorizontalStackLayout HorizontalOptions="Center">
<Label Text="Nom"
VerticalOptions="Center"/>
<Entry Text="{Binding Nom}" <Entry Text="{Binding Nom}"
HorizontalOptions="Center"> Margin="20,0,0,0">
<!-- To change the background if there is a name -->
<Entry.Triggers> <Entry.Triggers>
<DataTrigger TargetType="Entry" <DataTrigger TargetType="Entry"
Binding="{Binding NomIsValid}" Binding="{Binding NomIsValid}"
@ -38,68 +44,76 @@
<DataTrigger TargetType="Entry" <DataTrigger TargetType="Entry"
Binding="{Binding NomIsValid}" Binding="{Binding NomIsValid}"
Value="true"> Value="true">
<Setter Property="BackgroundColor" Value="{StaticResource White}" /> <Setter Property="BackgroundColor" Value="Transparent" />
</DataTrigger> </DataTrigger>
</Entry.Triggers> </Entry.Triggers>
</Entry> </Entry>
<Border Stroke="{StaticResource Secondary}" </HorizontalStackLayout>
StrokeThickness="2"
Margin="20" <Border VerticalOptions="Start"
Padding="10" Grid.Column="1"
Background="{StaticResource Primary}" Margin="0, 10, 0, 10">
VerticalOptions="Start"
Grid.Column="1">
<Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto, Auto, Auto, Auto, Auto" <Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto, Auto, Auto, Auto, Auto"
ColumnDefinitions="*, *" ColumnDefinitions="*, *"
RowSpacing="8"> RowSpacing="8">
<Label FontAttributes="Bold" <!-- Display and change date of birth -->
Text="Date de naissance"/> <Label Text="Date de naissance"/>
<DatePicker Grid.Column="1" <DatePicker Date="{Binding DateNaissance}"/>
MinimumDate="01/01/2000"
HorizontalOptions="End" <!-- Display and change gender -->
Date="{Binding DateNaissance}"/>
<Label Grid.Row="1" <Label Grid.Row="1"
FontAttributes="Bold"
Text="Sexe"/> Text="Sexe"/>
<Entry Grid.Column="1" <Picker Grid.Row="1"
Grid.Row="1" SelectedItem="{Binding Sexe}"
HorizontalOptions="End" SelectedIndexChanged="SexeClick">
Text="{Binding Sexe}"/> <Picker.Items>
<x:String>Femelle</x:String>
<x:String>Male</x:String>
</Picker.Items>
</Picker>
<!-- Display and change date of adoption -->
<Label Grid.Row="2" <Label Grid.Row="2"
FontAttributes="Bold"
Text="Date d'adoption"/> Text="Date d'adoption"/>
<DatePicker Grid.Column="1" <DatePicker Grid.Row="2"
Grid.Row="2"
MinimumDate="01/01/2000" MinimumDate="01/01/2000"
HorizontalOptions="End" HorizontalOptions="End"
Date="{Binding DateAdoption}"/> Date="{Binding DateAdoption}"/>
<!-- Display and change size -->
<Label Grid.Row="3" <Label Grid.Row="3"
FontAttributes="Bold"
Text="Taille"/> Text="Taille"/>
<HorizontalStackLayout Grid.Column="1" <HorizontalStackLayout Grid.Column="1"
Grid.Row="3" Grid.Row="3"
HorizontalOptions="End"> HorizontalOptions="End">
<Entry Text="{Binding Taille}"/> <Entry Text="{Binding Taille}"/>
<Label Text=" cm" VerticalOptions="Center"/> <Label Text="cm"
VerticalOptions="Center"
FontFamily="Raleway"
FontAttributes="None"/>
</HorizontalStackLayout> </HorizontalStackLayout>
<!-- Display and change weight -->
<Label Grid.Row="4" <Label Grid.Row="4"
FontAttributes="Bold"
Text="Poids"/> Text="Poids"/>
<HorizontalStackLayout Grid.Column="2" <HorizontalStackLayout Grid.Column="2"
Grid.Row="4" Grid.Row="4"
HorizontalOptions="End"> HorizontalOptions="End">
<Entry Text="{Binding Poids}"/> <Entry Text="{Binding Poids}"/>
<Label Text=" kg" VerticalOptions="Center"/> <Label Text=" kg"
VerticalOptions="Center"
FontFamily="Raleway"
FontAttributes="None"/>
</HorizontalStackLayout> </HorizontalStackLayout>
<!-- Display and change power supply -->
<Label Grid.Row="5" <Label Grid.Row="5"
FontAttributes="Bold"
Text="Alimentation"/> Text="Alimentation"/>
<Entry Grid.Column="2" <Entry Grid.Row="5"
Grid.Row="5"
HorizontalOptions="End"
Text="{Binding Alimentation}"/> Text="{Binding Alimentation}"/>
<!-- Display and change species -->
<Label Grid.Row="6" <Label Grid.Row="6"
FontAttributes="Bold"
Text="Espèce"/> Text="Espèce"/>
<Grid Grid.Row="6" <Grid Grid.Row="6"
Grid.Column="1" Grid.Column="1"
@ -107,17 +121,19 @@
RowDefinitions="Auto, Auto"> RowDefinitions="Auto, Auto">
<Label Text="{Binding Espece}" <Label Text="{Binding Espece}"
VerticalOptions="Start" VerticalOptions="Start"
HorizontalOptions="End"/>
<Picker Grid.Row="1"
HorizontalOptions="End" HorizontalOptions="End"
x:Name="Picker_especes" FontFamily="Raleway"
FontAttributes="None"/>
<Picker x:Name="Picker_especes"
Grid.Row="1"
ItemsSource="{Binding ListeEspeces}" ItemsSource="{Binding ListeEspeces}"
ItemDisplayBinding="{Binding Nom}" ItemDisplayBinding="{Binding Nom}"
SelectedIndexChanged="EspeceClic"> SelectedIndexChanged="EspeceClic">
</Picker> </Picker>
</Grid> </Grid>
<!-- Display and change breed -->
<Label Grid.Row="7" <Label Grid.Row="7"
FontAttributes="Bold"
Text="Race"/> Text="Race"/>
<Grid Grid.Row="7" <Grid Grid.Row="7"
Grid.Column="1" Grid.Column="1"
@ -125,9 +141,10 @@
RowDefinitions="Auto, Auto"> RowDefinitions="Auto, Auto">
<Label Text="{Binding Race}" <Label Text="{Binding Race}"
VerticalOptions="Start" VerticalOptions="Start"
HorizontalOptions="End"/>
<Picker Grid.Row="1"
HorizontalOptions="End" HorizontalOptions="End"
FontFamily="Raleway"
FontAttributes="None"/>
<Picker Grid.Row="1"
ItemsSource="{Binding Espece.ListeRaces}" ItemsSource="{Binding Espece.ListeRaces}"
ItemDisplayBinding="{Binding Nom}" ItemDisplayBinding="{Binding Nom}"
SelectedIndexChanged="RaceClic"> SelectedIndexChanged="RaceClic">
@ -136,243 +153,197 @@
</Grid> </Grid>
</Border> </Border>
<VerticalStackLayout
Margin="20"> <!-- Display and change petsitter -->
<VerticalStackLayout Margin="0, 10, 0, 10">
<Label Text="Petsitter" <Label Text="Petsitter"
FontSize="Large"/> FontSize="Large"/>
<Border Stroke="{StaticResource Secondary}" <Border>
StrokeThickness="2"
Padding="10"
Background="{StaticResource Primary}">
<Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto" <Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto"
ColumnDefinitions="*, *"> ColumnDefinitions="*, *">
<Label FontAttributes="Bold" <!-- Display and change petsitter's name -->
Text="Nom"/> <Label Text="Nom"/>
<Entry Grid.Column="1" <Entry Text="{Binding Petsitter.Nom}"/>
HorizontalOptions="End"
Text="{Binding Petsitter.Nom}"/> <!-- Display and change petsitter's address -->
<Label Grid.Row="1" <Label Grid.Row="1"
FontAttributes="Bold"
Text="Adresse"/> Text="Adresse"/>
<Entry Grid.Column="1" <Entry Grid.Row="1"
Grid.Row="1"
HorizontalOptions="End"
Text="{Binding Petsitter.Adresse}"/> Text="{Binding Petsitter.Adresse}"/>
<!-- Display and change petsitter's zip code -->
<Label Grid.Row="2" <Label Grid.Row="2"
FontAttributes="Bold"
Text="Code postal"/> Text="Code postal"/>
<Entry Grid.Column="1" <Entry Grid.Row="2"
Grid.Row="2"
HorizontalOptions="End"
Text="{Binding Petsitter.CodePostal}"/> Text="{Binding Petsitter.CodePostal}"/>
<!-- Display and change petsitter's city -->
<Label Grid.Row="3" <Label Grid.Row="3"
FontAttributes="Bold"
Text="Ville"/> Text="Ville"/>
<Entry Grid.Column="1" <Entry Grid.Row="3"
Grid.Row="3"
HorizontalOptions="End"
Text="{Binding Petsitter.Ville}"/> Text="{Binding Petsitter.Ville}"/>
<!-- Display and change petsitter's phone number -->
<Label Grid.Row="4" <Label Grid.Row="4"
FontAttributes="Bold"
Text="Numéro de téléphone"/> Text="Numéro de téléphone"/>
<Entry Grid.Column="1" <Entry Grid.Row="4"
Grid.Row="4"
HorizontalOptions="End"
Text="{Binding Petsitter.NumTel}"/> Text="{Binding Petsitter.NumTel}"/>
</Grid> </Grid>
</Border> </Border>
</VerticalStackLayout> </VerticalStackLayout>
<VerticalStackLayout <!-- Display and change kennel -->
Margin="20"> <VerticalStackLayout Margin="0, 10, 0, 10">
<Label Text="Chenil" <Label Text="Chenil"
FontSize="Large"/> FontSize="Large"/>
<Border Stroke="{StaticResource Secondary}" <Border>
StrokeThickness="2"
Padding="10"
Background="{StaticResource Primary}">
<Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto" <Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto"
ColumnDefinitions="*, *"> ColumnDefinitions="*, *">
<Label FontAttributes="Bold" <!-- Display and change kennel's name -->
Text="Nom"/> <Label Text="Nom"/>
<Entry Grid.Column="1" <Entry Text="{Binding Chenil.Nom}"/>
HorizontalOptions="End"
Text="{Binding Chenil.Nom}"/> <!-- Display and change kennel's address -->
<Label Grid.Row="1" <Label Grid.Row="1"
FontAttributes="Bold"
Text="Adresse"/> Text="Adresse"/>
<Entry Grid.Column="1" <Entry Grid.Row="1"
Grid.Row="1"
HorizontalOptions="End"
Text="{Binding Chenil.Adresse}"/> Text="{Binding Chenil.Adresse}"/>
<!-- Display and change kennel's zip code -->
<Label Grid.Row="2" <Label Grid.Row="2"
FontAttributes="Bold"
Text="Code postal"/> Text="Code postal"/>
<Entry Grid.Column="1" <Entry Grid.Row="2"
Grid.Row="2"
HorizontalOptions="End"
Text="{Binding Chenil.CodePostal}"/> Text="{Binding Chenil.CodePostal}"/>
<!-- Display and change kennel's city -->
<Label Grid.Row="3" <Label Grid.Row="3"
FontAttributes="Bold"
Text="Ville"/> Text="Ville"/>
<Entry Grid.Column="1" <Entry Grid.Row="3"
Grid.Row="3"
HorizontalOptions="End"
Text="{Binding Chenil.Ville}"/> Text="{Binding Chenil.Ville}"/>
<!-- Display and change kennel's phone number -->
<Label Grid.Row="4" <Label Grid.Row="4"
FontAttributes="Bold"
Text="Numéro de téléphone"/> Text="Numéro de téléphone"/>
<Entry Grid.Column="1" <Entry Grid.Row="4"
Grid.Row="4"
HorizontalOptions="End"
Text="{Binding Chenil.NumTel}"/> Text="{Binding Chenil.NumTel}"/>
</Grid> </Grid>
</Border> </Border>
</VerticalStackLayout> </VerticalStackLayout>
<VerticalStackLayout <!-- Display and change veterinarian -->
Margin="20"> <VerticalStackLayout Margin="0, 10, 0, 10">
<Label Text="Vétérinaire" <Label Text="Vétérinaire"
FontSize="Large"/> FontSize="Large"/>
<Border Stroke="{StaticResource Secondary}" <Border>
StrokeThickness="2"
Padding="10"
Background="{StaticResource Primary}">
<Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto, Auto" <Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto, Auto"
ColumnDefinitions="*, *"> ColumnDefinitions="*, *">
<Label FontAttributes="Bold" <!-- Display and change vet's name -->
Text="Nom"/> <Label Text="Nom"/>
<Entry Grid.Column="1" <Entry Text="{Binding Veterinaire.Nom}"/>
HorizontalOptions="End"
Text="{Binding Veterinaire.Nom}"/> <!-- Display and change vet's clinic -->
<Label Grid.Row="1" <Label Grid.Row="1"
FontAttributes="Bold"
Text="Clinique"/> Text="Clinique"/>
<Entry Grid.Column="1" <Entry Grid.Row="1"
Grid.Row="1"
HorizontalOptions="End"
Text="{Binding Veterinaire.Clinique}"/> Text="{Binding Veterinaire.Clinique}"/>
<!-- Display and change vet's address -->
<Label Grid.Row="2" <Label Grid.Row="2"
FontAttributes="Bold"
Text="Adresse"/> Text="Adresse"/>
<Entry Grid.Column="1" <Entry Grid.Row="2"
Grid.Row="2"
HorizontalOptions="End"
Text="{Binding Veterinaire.Adresse}"/> Text="{Binding Veterinaire.Adresse}"/>
<!-- Display and change vet's zip code -->
<Label Grid.Row="3" <Label Grid.Row="3"
FontAttributes="Bold"
Text="Code postal"/> Text="Code postal"/>
<Entry Grid.Column="1" <Entry Grid.Row="3"
Grid.Row="3"
HorizontalOptions="End"
Text="{Binding Veterinaire.CodePostal}"/> Text="{Binding Veterinaire.CodePostal}"/>
<!-- Display and change vet's city -->
<Label Grid.Row="4" <Label Grid.Row="4"
FontAttributes="Bold"
Text="Ville"/> Text="Ville"/>
<Entry Grid.Column="1" <Entry Grid.Row="4"
Grid.Row="4"
HorizontalOptions="End"
Text="{Binding Veterinaire.Ville}"/> Text="{Binding Veterinaire.Ville}"/>
<!-- Display and change vet's phone number -->
<Label Grid.Row="5" <Label Grid.Row="5"
FontAttributes="Bold"
Text="Numéro de téléphone"/> Text="Numéro de téléphone"/>
<Entry Grid.Column="1" <Entry Grid.Row="5"
Grid.Row="5"
HorizontalOptions="End"
Text="{Binding Veterinaire.NumTel}"/> Text="{Binding Veterinaire.NumTel}"/>
</Grid> </Grid>
</Border> </Border>
</VerticalStackLayout> </VerticalStackLayout>
<VerticalStackLayout <!-- Display and change food store -->
Margin="20"> <VerticalStackLayout Margin="0, 10, 0, 10">
<Label Text="Magasin alimentaire" <Label Text="Magasin alimentaire"
FontSize="Large"/> FontSize="Large"/>
<Border Stroke="{StaticResource Secondary}" <Border>
StrokeThickness="2"
Padding="10"
Background="{StaticResource Primary}">
<Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto" <Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto"
ColumnDefinitions="*, *"> ColumnDefinitions="*, *">
<Label FontAttributes="Bold" <!-- Display and change food store name -->
Text="Nom"/> <Label Text="Nom"/>
<Entry Grid.Column="1" <Entry Text="{Binding MagasinAlimentaire.Nom}"/>
HorizontalOptions="End"
Text="{Binding MagasinAlimentaire.Nom}"/> <!-- Display and change food store address -->
<Label Grid.Row="1" <Label Grid.Row="1"
FontAttributes="Bold"
Text="Adresse"/> Text="Adresse"/>
<Entry Grid.Column="1" <Entry Text="{Binding MagasinAlimentaire.Adresse}"/>
Grid.Row="1"
HorizontalOptions="End" <!-- Display and change food store zip code -->
Text="{Binding MagasinAlimentaire.Adresse}"/>
<Label Grid.Row="2" <Label Grid.Row="2"
FontAttributes="Bold"
Text="Code postal"/> Text="Code postal"/>
<Entry Grid.Column="1" <Entry Grid.Row="2"
Grid.Row="2"
HorizontalOptions="End"
Text="{Binding MagasinAlimentaire.CodePostal}"/> Text="{Binding MagasinAlimentaire.CodePostal}"/>
<!-- Display and change food store city -->
<Label Grid.Row="3" <Label Grid.Row="3"
FontAttributes="Bold"
Text="Ville"/> Text="Ville"/>
<Entry Grid.Column="1" <Entry Grid.Row="3"
Grid.Row="3"
HorizontalOptions="End"
Text="{Binding MagasinAlimentaire.Ville}"/> Text="{Binding MagasinAlimentaire.Ville}"/>
<!-- Display and change food store phone number -->
<Label Grid.Row="4" <Label Grid.Row="4"
FontAttributes="Bold"
Text="Numéro de téléphone"/> Text="Numéro de téléphone"/>
<Entry Grid.Column="1" <Entry Grid.Row="4"
Grid.Row="4"
HorizontalOptions="End"
Text="{Binding MagasinAlimentaire.NumTel}"/> Text="{Binding MagasinAlimentaire.NumTel}"/>
</Grid> </Grid>
</Border> </Border>
</VerticalStackLayout> </VerticalStackLayout>
<VerticalStackLayout <!-- Display and change provenance -->
Margin="20"> <VerticalStackLayout Margin="0, 10, 0, 10">
<Label Text="Refuge, élevage, chenil de provenance" <Label Text="Refuge, élevage, chenil de provenance"
FontSize="Large"/> FontSize="Large"/>
<Border Stroke="{StaticResource Secondary}" <Border>
StrokeThickness="2"
Padding="10"
Background="{StaticResource Primary}">
<Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto" <Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto"
ColumnDefinitions="*, *"> ColumnDefinitions="*, *">
<Label FontAttributes="Bold" <!-- Display and change provenance's name -->
Text="Nom"/> <Label Text="Nom"/>
<Entry Grid.Column="1" <Entry Text="{Binding Provenance.Nom}"/>
HorizontalOptions="End"
Text="{Binding Provenance.Nom}"/> <!-- Display and change provenance's address -->
<Label Grid.Row="1" <Label Grid.Row="1"
FontAttributes="Bold"
Text="Adresse"/> Text="Adresse"/>
<Entry Grid.Column="1" <Entry Grid.Row="1"
Grid.Row="1"
HorizontalOptions="End"
Text="{Binding Provenance.Adresse}"/> Text="{Binding Provenance.Adresse}"/>
<!-- Display and change provenance's zip code -->
<Label Grid.Row="2" <Label Grid.Row="2"
FontAttributes="Bold"
Text="Code postal"/> Text="Code postal"/>
<Entry Grid.Column="1" <Entry Grid.Row="2"
Grid.Row="2"
HorizontalOptions="End"
Text="{Binding Provenance.CodePostal}"/> Text="{Binding Provenance.CodePostal}"/>
<!-- Display and change provenance's city -->
<Label Grid.Row="3" <Label Grid.Row="3"
FontAttributes="Bold"
Text="Ville"/> Text="Ville"/>
<Entry Grid.Column="1" <Entry Grid.Row="3"
Grid.Row="3"
HorizontalOptions="End"
Text="{Binding Provenance.Ville}"/> Text="{Binding Provenance.Ville}"/>
<!-- Display and change provenance's phone number -->
<Label Grid.Row="4" <Label Grid.Row="4"
FontAttributes="Bold"
Text="Numéro de téléphone"/> Text="Numéro de téléphone"/>
<Entry Grid.Column="1" <Entry Grid.Row="4"
Grid.Row="4"
HorizontalOptions="End"
Text="{Binding Provenance.NumTel}"/> Text="{Binding Provenance.NumTel}"/>
</Grid> </Grid>
</Border> </Border>

@ -8,7 +8,7 @@
<Color x:Key="Secondary">#402e32</Color> <Color x:Key="Secondary">#402e32</Color>
<Color x:Key="Error">#FF5349</Color> <Color x:Key="Error">#FF5349</Color>
<Color x:Key="Tertiary">#2B0B98</Color> <Color x:Key="Tertiary">#2B0B98</Color>
<Color x:Key="White">White</Color> <Color x:Key="White">#faf5f0</Color>
<Color x:Key="Black">Black</Color> <Color x:Key="Black">Black</Color>
<Color x:Key="Gray100">#E1E1E1</Color> <Color x:Key="Gray100">#E1E1E1</Color>
<Color x:Key="Gray200">#C8C8C8</Color> <Color x:Key="Gray200">#C8C8C8</Color>

@ -4,34 +4,24 @@
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"> xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
<Style TargetType="ActivityIndicator">
<Setter Property="Color" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
</Style>
<Style TargetType="IndicatorView">
<Setter Property="IndicatorColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}"/>
<Setter Property="SelectedIndicatorColor" Value="{AppThemeBinding Light={StaticResource Gray950}, Dark={StaticResource Gray100}}"/>
</Style>
<Style TargetType="Border"> <Style TargetType="Border">
<Setter Property="Stroke" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}" /> <Setter Property="Stroke" Value="{AppThemeBinding Light={StaticResource Secondary}, Dark={StaticResource Primary}}" />
<Setter Property="StrokeShape" Value="Rectangle"/> <Setter Property="StrokeShape" Value="Rectangle"/>
<Setter Property="StrokeThickness" Value="1"/> <Setter Property="StrokeThickness" Value="2"/>
</Style> <Setter Property="Background" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource Primary}}"/>
<Setter Property="Padding" Value="15"/>
<Style TargetType="BoxView">
<Setter Property="Color" Value="{AppThemeBinding Light={StaticResource Gray950}, Dark={StaticResource Gray200}}" />
</Style> </Style>
<Style TargetType="Button"> <Style TargetType="Button">
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Primary}}" /> <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Secondary}, Dark={StaticResource White}}" />
<Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" /> <Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource Primary}}" />
<Setter Property="FontFamily" Value="OpenSansRegular"/> <Setter Property="FontFamily" Value="Raleway"/>
<Setter Property="FontSize" Value="14"/> <Setter Property="FontSize" Value="14"/>
<Setter Property="CornerRadius" Value="8"/> <Setter Property="CornerRadius" Value="8"/>
<Setter Property="Padding" Value="14,10"/> <Setter Property="Padding" Value="10"/>
<Setter Property="MinimumHeightRequest" Value="44"/> <Setter Property="MinimumHeightRequest" Value="40"/>
<Setter Property="MinimumWidthRequest" Value="44"/> <Setter Property="MinimumWidthRequest" Value="40"/>
<Setter Property="Margin" Value="0,10,0,10"/>
<Setter Property="VisualStateManager.VisualStateGroups"> <Setter Property="VisualStateManager.VisualStateGroups">
<VisualStateGroupList> <VisualStateGroupList>
<VisualStateGroup x:Name="CommonStates"> <VisualStateGroup x:Name="CommonStates">
@ -47,60 +37,23 @@
</Setter> </Setter>
</Style> </Style>
<Style TargetType="CheckBox">
<Setter Property="Color" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
<Setter Property="MinimumHeightRequest" Value="44"/>
<Setter Property="MinimumWidthRequest" Value="44"/>
<Setter Property="VisualStateManager.VisualStateGroups">
<VisualStateGroupList>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal" />
<VisualState x:Name="Disabled">
<VisualState.Setters>
<Setter Property="Color" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateGroupList>
</Setter>
</Style>
<Style TargetType="DatePicker"> <Style TargetType="DatePicker">
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}" /> <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Secondary}, Dark={StaticResource White}}" />
<Setter Property="BackgroundColor" Value="Transparent" /> <Setter Property="BackgroundColor" Value="Transparent" />
<Setter Property="FontFamily" Value="OpenSansRegular"/> <Setter Property="FontFamily" Value="Raleway"/>
<Setter Property="FontSize" Value="14"/> <Setter Property="FontSize" Value="14"/>
<Setter Property="MinimumHeightRequest" Value="44"/> <Setter Property="MinimumHeightRequest" Value="40"/>
<Setter Property="MinimumWidthRequest" Value="44"/> <Setter Property="MinimumWidthRequest" Value="40"/>
<Setter Property="MinimumDate" Value="01/01/2000"/>
<Setter Property="HorizontalOptions" Value="End"/>
<Setter Property="Grid.Column" Value="1"/>
<Setter Property="VisualStateManager.VisualStateGroups"> <Setter Property="VisualStateManager.VisualStateGroups">
<VisualStateGroupList> <VisualStateGroupList>
<VisualStateGroup x:Name="CommonStates"> <VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal" /> <VisualState x:Name="Normal" />
<VisualState x:Name="Disabled"> <VisualState x:Name="Disabled">
<VisualState.Setters> <VisualState.Setters>
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}" /> <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Secondary}, Dark={StaticResource Primary}}" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateGroupList>
</Setter>
</Style>
<Style TargetType="Editor">
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}" />
<Setter Property="BackgroundColor" Value="Transparent" />
<Setter Property="FontFamily" Value="OpenSansRegular"/>
<Setter Property="FontSize" Value="14" />
<Setter Property="PlaceholderColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}" />
<Setter Property="MinimumHeightRequest" Value="44"/>
<Setter Property="MinimumWidthRequest" Value="44"/>
<Setter Property="VisualStateManager.VisualStateGroups">
<VisualStateGroupList>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal" />
<VisualState x:Name="Disabled">
<VisualState.Setters>
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
</VisualState.Setters> </VisualState.Setters>
</VisualState> </VisualState>
</VisualStateGroup> </VisualStateGroup>
@ -109,20 +62,21 @@
</Style> </Style>
<Style TargetType="Entry"> <Style TargetType="Entry">
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}" /> <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Secondary}, Dark={StaticResource White}}" />
<Setter Property="BackgroundColor" Value="Transparent" /> <Setter Property="BackgroundColor" Value="Transparent" />
<Setter Property="FontFamily" Value="OpenSansRegular"/> <Setter Property="FontFamily" Value="Raleway"/>
<Setter Property="FontSize" Value="14" /> <Setter Property="FontSize" Value="14" />
<Setter Property="PlaceholderColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}" /> <Setter Property="MinimumHeightRequest" Value="40"/>
<Setter Property="MinimumHeightRequest" Value="44"/> <Setter Property="MinimumWidthRequest" Value="40"/>
<Setter Property="MinimumWidthRequest" Value="44"/> <Setter Property="HorizontalOptions" Value="End"/>
<Setter Property="Grid.Column" Value="1"/>
<Setter Property="VisualStateManager.VisualStateGroups"> <Setter Property="VisualStateManager.VisualStateGroups">
<VisualStateGroupList> <VisualStateGroupList>
<VisualStateGroup x:Name="CommonStates"> <VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal" /> <VisualState x:Name="Normal" />
<VisualState x:Name="Disabled"> <VisualState x:Name="Disabled">
<VisualState.Setters> <VisualState.Setters>
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" /> <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Secondary}, Dark={StaticResource Primary}}" />
</VisualState.Setters> </VisualState.Setters>
</VisualState> </VisualState>
</VisualStateGroup> </VisualStateGroup>
@ -132,43 +86,26 @@
<Style TargetType="Frame"> <Style TargetType="Frame">
<Setter Property="HasShadow" Value="False" /> <Setter Property="HasShadow" Value="False" />
<Setter Property="BorderColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray950}}" /> <Setter Property="BorderColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource Primary}}" />
<Setter Property="CornerRadius" Value="8" /> <Setter Property="CornerRadius" Value="8" />
</Style> <Setter Property="HeightRequest" Value="60"/>
<Setter Property="WidthRequest" Value="60"/>
<Style TargetType="ImageButton"> <Setter Property="Padding" Value="0"/>
<Setter Property="Opacity" Value="1" />
<Setter Property="BorderColor" Value="Transparent"/>
<Setter Property="BorderWidth" Value="0"/>
<Setter Property="CornerRadius" Value="0"/>
<Setter Property="MinimumHeightRequest" Value="44"/>
<Setter Property="MinimumWidthRequest" Value="44"/>
<Setter Property="VisualStateManager.VisualStateGroups">
<VisualStateGroupList>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal" />
<VisualState x:Name="Disabled">
<VisualState.Setters>
<Setter Property="Opacity" Value="0.5" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateGroupList>
</Setter>
</Style> </Style>
<Style TargetType="Label"> <Style TargetType="Label">
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}" /> <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Secondary}, Dark={StaticResource White}}" />
<Setter Property="BackgroundColor" Value="Transparent" /> <Setter Property="BackgroundColor" Value="Transparent" />
<Setter Property="FontFamily" Value="OpenSansRegular" /> <Setter Property="FontFamily" Value="DMSerifDisplay" />
<Setter Property="FontSize" Value="14" /> <Setter Property="FontSize" Value="14" />
<Setter Property="FontAttributes" Value="Bold"/>
<Setter Property="VisualStateManager.VisualStateGroups"> <Setter Property="VisualStateManager.VisualStateGroups">
<VisualStateGroupList> <VisualStateGroupList>
<VisualStateGroup x:Name="CommonStates"> <VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal" /> <VisualState x:Name="Normal" />
<VisualState x:Name="Disabled"> <VisualState x:Name="Disabled">
<VisualState.Setters> <VisualState.Setters>
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" /> <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Secondary}, Dark={StaticResource White}}" />
</VisualState.Setters> </VisualState.Setters>
</VisualState> </VisualState>
</VisualStateGroup> </VisualStateGroup>
@ -176,194 +113,22 @@
</Setter> </Setter>
</Style> </Style>
<Style TargetType="ListView">
<Setter Property="SeparatorColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}" />
<Setter Property="RefreshControlColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource Gray200}}" />
</Style>
<Style TargetType="Picker"> <Style TargetType="Picker">
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}" /> <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Secondary}, Dark={StaticResource White}}" />
<Setter Property="TitleColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource Gray200}}" />
<Setter Property="BackgroundColor" Value="Transparent" />
<Setter Property="FontFamily" Value="OpenSansRegular"/>
<Setter Property="FontSize" Value="14"/>
<Setter Property="MinimumHeightRequest" Value="44"/>
<Setter Property="MinimumWidthRequest" Value="44"/>
<Setter Property="VisualStateManager.VisualStateGroups">
<VisualStateGroupList>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal" />
<VisualState x:Name="Disabled">
<VisualState.Setters>
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
<Setter Property="TitleColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateGroupList>
</Setter>
</Style>
<Style TargetType="ProgressBar">
<Setter Property="ProgressColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
<Setter Property="VisualStateManager.VisualStateGroups">
<VisualStateGroupList>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal" />
<VisualState x:Name="Disabled">
<VisualState.Setters>
<Setter Property="ProgressColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateGroupList>
</Setter>
</Style>
<Style TargetType="RadioButton">
<Setter Property="BackgroundColor" Value="Transparent"/>
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}" />
<Setter Property="FontFamily" Value="OpenSansRegular"/>
<Setter Property="FontSize" Value="14"/>
<Setter Property="MinimumHeightRequest" Value="44"/>
<Setter Property="MinimumWidthRequest" Value="44"/>
<Setter Property="VisualStateManager.VisualStateGroups">
<VisualStateGroupList>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal" />
<VisualState x:Name="Disabled">
<VisualState.Setters>
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateGroupList>
</Setter>
</Style>
<Style TargetType="RefreshView">
<Setter Property="RefreshColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource Gray200}}" />
</Style>
<Style TargetType="SearchBar">
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}" />
<Setter Property="PlaceholderColor" Value="{StaticResource Gray500}" />
<Setter Property="CancelButtonColor" Value="{StaticResource Gray500}" />
<Setter Property="BackgroundColor" Value="Transparent" /> <Setter Property="BackgroundColor" Value="Transparent" />
<Setter Property="FontFamily" Value="OpenSansRegular" /> <Setter Property="FontFamily" Value="Raleway"/>
<Setter Property="FontSize" Value="14" />
<Setter Property="MinimumHeightRequest" Value="44"/>
<Setter Property="MinimumWidthRequest" Value="44"/>
<Setter Property="VisualStateManager.VisualStateGroups">
<VisualStateGroupList>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal" />
<VisualState x:Name="Disabled">
<VisualState.Setters>
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
<Setter Property="PlaceholderColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateGroupList>
</Setter>
</Style>
<Style TargetType="SearchHandler">
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}" />
<Setter Property="PlaceholderColor" Value="{StaticResource Gray500}" />
<Setter Property="BackgroundColor" Value="Transparent" />
<Setter Property="FontFamily" Value="OpenSansRegular" />
<Setter Property="FontSize" Value="14" />
<Setter Property="VisualStateManager.VisualStateGroups">
<VisualStateGroupList>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal" />
<VisualState x:Name="Disabled">
<VisualState.Setters>
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
<Setter Property="PlaceholderColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateGroupList>
</Setter>
</Style>
<Style TargetType="Shadow">
<Setter Property="Radius" Value="15" />
<Setter Property="Opacity" Value="0.5" />
<Setter Property="Brush" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource White}}" />
<Setter Property="Offset" Value="10,10" />
</Style>
<Style TargetType="Slider">
<Setter Property="MinimumTrackColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
<Setter Property="MaximumTrackColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray600}}" />
<Setter Property="ThumbColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
<Setter Property="VisualStateManager.VisualStateGroups">
<VisualStateGroupList>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal" />
<VisualState x:Name="Disabled">
<VisualState.Setters>
<Setter Property="MinimumTrackColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}"/>
<Setter Property="MaximumTrackColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}"/>
<Setter Property="ThumbColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}"/>
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateGroupList>
</Setter>
</Style>
<Style TargetType="SwipeItem">
<Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Black}}" />
</Style>
<Style TargetType="Switch">
<Setter Property="OnColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
<Setter Property="ThumbColor" Value="{StaticResource White}" />
<Setter Property="VisualStateManager.VisualStateGroups">
<VisualStateGroupList>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal" />
<VisualState x:Name="Disabled">
<VisualState.Setters>
<Setter Property="OnColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
<Setter Property="ThumbColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="On">
<VisualState.Setters>
<Setter Property="OnColor" Value="{AppThemeBinding Light={StaticResource Secondary}, Dark={StaticResource Gray200}}" />
<Setter Property="ThumbColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="Off">
<VisualState.Setters>
<Setter Property="ThumbColor" Value="{AppThemeBinding Light={StaticResource Gray400}, Dark={StaticResource Gray500}}" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateGroupList>
</Setter>
</Style>
<Style TargetType="TimePicker">
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}" />
<Setter Property="BackgroundColor" Value="Transparent"/>
<Setter Property="FontFamily" Value="OpenSansRegular"/>
<Setter Property="FontSize" Value="14"/> <Setter Property="FontSize" Value="14"/>
<Setter Property="MinimumHeightRequest" Value="44"/> <Setter Property="MinimumHeightRequest" Value="40"/>
<Setter Property="MinimumWidthRequest" Value="44"/> <Setter Property="MinimumWidthRequest" Value="40"/>
<Setter Property="HorizontalOptions" Value="End"/>
<Setter Property="Grid.Column" Value="1"/>
<Setter Property="VisualStateManager.VisualStateGroups"> <Setter Property="VisualStateManager.VisualStateGroups">
<VisualStateGroupList> <VisualStateGroupList>
<VisualStateGroup x:Name="CommonStates"> <VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal" /> <VisualState x:Name="Normal" />
<VisualState x:Name="Disabled"> <VisualState x:Name="Disabled">
<VisualState.Setters> <VisualState.Setters>
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" /> <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Secondary}, Dark={StaticResource Primary}}" />
</VisualState.Setters> </VisualState.Setters>
</VisualState> </VisualState>
</VisualStateGroup> </VisualStateGroup>
@ -373,33 +138,17 @@
<Style TargetType="Page" ApplyToDerivedTypes="True"> <Style TargetType="Page" ApplyToDerivedTypes="True">
<Setter Property="Padding" Value="0"/> <Setter Property="Padding" Value="0"/>
<Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Black}}" /> <Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Secondary}}" />
</Style> </Style>
<Style TargetType="Shell" ApplyToDerivedTypes="True"> <Style TargetType="ScrollView">
<Setter Property="Shell.BackgroundColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource Gray950}}" /> <Setter Property="Margin" Value="40"/>
<Setter Property="Shell.ForegroundColor" Value="{OnPlatform WinUI={StaticResource Primary}, Default={StaticResource White}}" />
<Setter Property="Shell.TitleColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource White}}" />
<Setter Property="Shell.DisabledColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray950}}" />
<Setter Property="Shell.UnselectedColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray200}}" />
<Setter Property="Shell.NavBarHasShadow" Value="False" />
<Setter Property="Shell.TabBarBackgroundColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Black}}" />
<Setter Property="Shell.TabBarForegroundColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
<Setter Property="Shell.TabBarTitleColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
<Setter Property="Shell.TabBarUnselectedColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource Gray200}}" />
</Style>
<Style TargetType="NavigationPage">
<Setter Property="BarBackgroundColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource Gray950}}" />
<Setter Property="BarTextColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource White}}" />
<Setter Property="IconColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource White}}" />
</Style> </Style>
<Style TargetType="TabbedPage"> <Style TargetType="Shell" ApplyToDerivedTypes="True">
<Setter Property="BarBackgroundColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Gray950}}" /> <Setter Property="Shell.BackgroundColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource Primary}}" />
<Setter Property="BarTextColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" /> <Setter Property="Shell.TitleColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Secondary}}" />
<Setter Property="UnselectedTabColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray950}}" /> <Setter Property="Shell.TabBarBackgroundColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Secondary}}" />
<Setter Property="SelectedTabColor" Value="{AppThemeBinding Light={StaticResource Gray950}, Dark={StaticResource Gray200}}" /> <Setter Property="Shell.TabBarForegroundColor" Value="{AppThemeBinding Light={StaticResource Secondary}, Dark={StaticResource Primary}}" />
</Style> </Style>
</ResourceDictionary> </ResourceDictionary>

Loading…
Cancel
Save