ADD : Finish correction Navigation Command Header

commands-19-09
Lou BRODA 1 year ago
parent 60547644be
commit 4971951d45

@ -117,10 +117,10 @@
<toolkit:IconTintColorBehavior TintColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"/>
</Image.Behaviors>
</Image>
<Grid.GestureRecognizers>
<TapGestureRecognizer Command="{Binding Navigator.PopupISBNNavigationCommand}"/>
</Grid.GestureRecognizers>
</Grid>
<Grid.GestureRecognizers>
<TapGestureRecognizer Command="{Binding Navigator.PopupISBNNavigationCommand}"/>
</Grid.GestureRecognizers>
</Grid>
<Border.StrokeShape>
<RoundRectangle CornerRadius="10" />

@ -40,7 +40,7 @@
Style="{StaticResource HeaderTitle}"
Grid.Column="2"/>
<Grid.GestureRecognizers>
<TapGestureRecognizer Command="{Binding PopupBackButtonNavigationCommand}"/>
<TapGestureRecognizer Command="{Binding ButtonBackTappedCommand}"/>
</Grid.GestureRecognizers>
</Grid>
<ImageButton VerticalOptions="Center"
@ -49,7 +49,7 @@
MaximumHeightRequest="20"
MaximumWidthRequest="20"
IsVisible="{Binding HeaderPlusButtonVisible}"
Command="{Binding ButtonTappedCommand}"
Command="{Binding ButtonPlusTappedCommand}"
Grid.Column="2">
<ImageButton.Behaviors>
<toolkit:IconTintColorBehavior TintColor="{StaticResource PinkOrange}"/>

@ -1,10 +1,16 @@
using LivreLand.Model;
using LivreLand.ViewModel;
namespace LivreLand.View;
public partial class TousView : ContentPage
{
public List<BookModel> DamasioBooks { get; set; } = new List<BookModel>()
#region Properties
public NavigatorVM Navigator { get; private set; }
public List<BookModel> DamasioBooks { get; set; } = new List<BookModel>()
{
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
}

@ -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()));

Loading…
Cancel
Save