diff --git a/LivreLand/View/ContentViews/PopupHomePlusButtonView.xaml b/LivreLand/View/ContentViews/PopupHomePlusButtonView.xaml
index cf9db6a..0c99d19 100644
--- a/LivreLand/View/ContentViews/PopupHomePlusButtonView.xaml
+++ b/LivreLand/View/ContentViews/PopupHomePlusButtonView.xaml
@@ -117,10 +117,10 @@
+
+
+
-
-
-
diff --git a/LivreLand/View/HeaderPage.xaml b/LivreLand/View/HeaderPage.xaml
index 150765f..9bd6502 100644
--- a/LivreLand/View/HeaderPage.xaml
+++ b/LivreLand/View/HeaderPage.xaml
@@ -40,7 +40,7 @@
Style="{StaticResource HeaderTitle}"
Grid.Column="2"/>
-
+
diff --git a/LivreLand/View/TousView.xaml.cs b/LivreLand/View/TousView.xaml.cs
index 6610a6e..f2f5505 100644
--- a/LivreLand/View/TousView.xaml.cs
+++ b/LivreLand/View/TousView.xaml.cs
@@ -1,10 +1,16 @@
using LivreLand.Model;
+using LivreLand.ViewModel;
namespace LivreLand.View;
public partial class TousView : ContentPage
{
- public List DamasioBooks { get; set; } = new List()
+
+ #region Properties
+
+ public NavigatorVM Navigator { get; private set; }
+
+ public List DamasioBooks { get; set; } = new List()
{
new BookModel("La horde du contrevent","Alain Damasio","Non lu", 0),
new BookModel("La zone du dehors","Alain Damasio","Terminé", 0),
@@ -17,14 +23,25 @@ public partial class TousView : ContentPage
new BookModel("Le problème à trois corps","Cixin Liu","Terminé", 0)
};
- public TousView()
+ #endregion
+
+ #region Constructor
+
+ public TousView(NavigatorVM navigatorVM)
{
- BindingContext = this;
+ Navigator = navigatorVM;
InitializeComponent();
- }
+ BindingContext = this;
+ }
+
+ #endregion
- void OnSelectionChanged(object sender, SelectionChangedEventArgs e)
+ #region Methods
+
+ void OnSelectionChanged(object sender, SelectionChangedEventArgs e)
{
App.Current.MainPage.Navigation.PushAsync(new DetailsLivreView());
}
+
+ #endregion
}
\ No newline at end of file
diff --git a/LivreLand/ViewModel/NavigatorVM.cs b/LivreLand/ViewModel/NavigatorVM.cs
index 63c8b9e..41cf936 100644
--- a/LivreLand/ViewModel/NavigatorVM.cs
+++ b/LivreLand/ViewModel/NavigatorVM.cs
@@ -33,7 +33,7 @@ namespace LivreLand.ViewModel
public NavigatorVM()
{
- TousNavigationCommand = new Command(() => Navigator.PushAsync(new TousView()));
+ TousNavigationCommand = new Command(() => Navigator.PushAsync(new TousView(this)));
EmpruntsPretsNavigationCommand = new Command(() => Navigator.PushAsync(new EmpruntsPretsView()));
ALirePlusTardNavigationCommand = new Command(() => Navigator.PushAsync(new ALirePlusTardView()));
StatutLectureNavigationCommand = new Command(() => Navigator.PushAsync(new StatutLectureView()));