diff --git a/src/BookApp/AppShell.xaml b/src/BookApp/AppShell.xaml
index a07b727..3990516 100644
--- a/src/BookApp/AppShell.xaml
+++ b/src/BookApp/AppShell.xaml
@@ -5,10 +5,6 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:BookApp"
Shell.FlyoutBehavior="Disabled">
-
-
-
-
@@ -29,5 +25,4 @@
-
diff --git a/src/BookApp/BookApp.csproj b/src/BookApp/BookApp.csproj
index bce1c9e..ae57a42 100644
--- a/src/BookApp/BookApp.csproj
+++ b/src/BookApp/BookApp.csproj
@@ -67,8 +67,9 @@
+
-
+
diff --git a/src/BookApp/MainPage.xaml b/src/BookApp/MainPage.xaml
index 6b541a5..7e3dc0e 100644
--- a/src/BookApp/MainPage.xaml
+++ b/src/BookApp/MainPage.xaml
@@ -20,8 +20,8 @@
-
-
+
+
@@ -45,20 +45,26 @@
+ Margin="0,0,20,0"/>
-
-
+
+
+
+
+
+
+
@@ -101,12 +107,10 @@
BackgroundColor="White"
HorizontalOptions="End"/>
-
-
diff --git a/src/BookApp/MainPage.xaml.cs b/src/BookApp/MainPage.xaml.cs
index 14342d5..005aed9 100644
--- a/src/BookApp/MainPage.xaml.cs
+++ b/src/BookApp/MainPage.xaml.cs
@@ -9,14 +9,18 @@ namespace BookApp
{
public string Name { get; set; }
public string Icone { get; set; }
+ public int Number { get; set; }
- public ObjetTemp(string name, string icone)
+ public ObjetTemp(string name, string icone, int number)
{
Name = name;
Icone = icone;
+ Number = number;
}
}
+ public bool IsLastItem { get; set; } //TO DO
+
public ObservableCollection MyCollections1 { get; set; }
public ObservableCollection MyCollections2 { get; set; }
@@ -25,22 +29,23 @@ namespace BookApp
InitializeComponent();
MyCollections1 = new ObservableCollection()
{
- new ObjetTemp("Item1", "./Reources/Images/tray_2_fill.svg"),
- new ObjetTemp("Item1", "./Reources/Images/person_badge_clock_fill.svg"),
- new ObjetTemp("Item1", "./Reources/Images/arrow_forward.svg"),
- new ObjetTemp("Item1", "./Reources/Images/eyeglasses.svg"),
- new ObjetTemp("Item1", "./Reources/Images/heart_fill.svg"),
- new ObjetTemp("Item1", "./Reources/Images/tag_fill.svg"),
+ new ObjetTemp("Item1", "./Reources/Images/tray_2_fill.svg", 250),
+ new ObjetTemp("Item1", "./Reources/Images/person_badge_clock_fill.svg", 250),
+ new ObjetTemp("Item1", "./Reources/Images/arrow_forward.svg", 250),
+ new ObjetTemp("Item1", "./Reources/Images/eyeglasses.svg", 250),
+ new ObjetTemp("Item1", "./Reources/Images/heart_fill.svg", 250),
+ new ObjetTemp("Item1", "./Reources/Images/tag_fill.svg", 250),
};
MyCollections2 = new ObservableCollection()
{
- new ObjetTemp("Item1", "./Reources/Images/person_fill.svg"),
- new ObjetTemp("Item1", "./Reources/Images/calendar.svg"),
- new ObjetTemp("Item1", "./Reources/Images/sparkles.svg"),
+ new ObjetTemp("Item1", "./Reources/Images/person_fill.svg", 250),
+ new ObjetTemp("Item1", "./Reources/Images/calendar.svg", 250),
+ new ObjetTemp("Item1", "./Reources/Images/sparkles.svg", 250),
};
BindingContext = this;
}
+ // Commande with view model pour le futur
async void OnButtonClicked(object sender, EventArgs args)
{
await Shell.Current.GoToAsync(nameof(Tous));
diff --git a/src/BookApp/MauiProgram.cs b/src/BookApp/MauiProgram.cs
index 7c7f210..328f4bd 100644
--- a/src/BookApp/MauiProgram.cs
+++ b/src/BookApp/MauiProgram.cs
@@ -1,27 +1,29 @@
-using Microsoft.Extensions.Logging;
-using SimpleRatingControlMaui;
-
-namespace BookApp
-{
- public static class MauiProgram
- {
- public static MauiApp CreateMauiApp()
- {
- var builder = MauiApp.CreateBuilder();
- builder
- .UseMauiApp()
- .UseSimpleRatingControl()
- .ConfigureFonts(fonts =>
- {
- fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
- fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
- });
-
-#if DEBUG
- builder.Logging.AddDebug();
-#endif
-
- return builder.Build();
- }
- }
-}
+using CommunityToolkit.Maui;
+using Microsoft.Extensions.Logging;
+using SimpleRatingControlMaui;
+
+namespace BookApp
+{
+ public static class MauiProgram
+ {
+ public static MauiApp CreateMauiApp()
+ {
+ var builder = MauiApp.CreateBuilder();
+ builder
+ .UseMauiApp()
+ .UseMauiCommunityToolkit()
+ .UseSimpleRatingControl()
+ .ConfigureFonts(fonts =>
+ {
+ fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
+ fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
+ });
+
+#if DEBUG
+ builder.Logging.AddDebug();
+#endif
+
+ return builder.Build();
+ }
+ }
+}
diff --git a/src/BookApp/Pages/DetailBook.xaml b/src/BookApp/Pages/DetailBook.xaml
index 29335a8..8bdc52f 100644
--- a/src/BookApp/Pages/DetailBook.xaml
+++ b/src/BookApp/Pages/DetailBook.xaml
@@ -39,6 +39,7 @@
ImageSource="chevron_right.svg"
HeightRequest="35"
WidthRequest="35"
+ BackgroundColor="White"
HorizontalOptions="End"/>
diff --git a/src/BookApp/Pages/Filtrage.xaml b/src/BookApp/Pages/Filtrage.xaml
index 53416a2..36794ef 100644
--- a/src/BookApp/Pages/Filtrage.xaml
+++ b/src/BookApp/Pages/Filtrage.xaml
@@ -2,8 +2,9 @@
+ xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
+ x:Class="BookApp.Pages.Filtrage"
+ Title="Filtrage">
+ WidthRequest="30" Source="Book.svg">
+
+
+
+