|
|
|
@ -4,6 +4,7 @@
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
|
|
|
xmlns:vm="clr-namespace:BookApp.ViewModel"
|
|
|
|
|
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
|
|
|
|
x:Name="ThisPage"
|
|
|
|
|
x:Class="BookApp.MainPage">
|
|
|
|
|
<Shell.TitleView>
|
|
|
|
|
<Grid RowDefinitions="Auto">
|
|
|
|
@ -41,14 +42,13 @@
|
|
|
|
|
<StackLayout>
|
|
|
|
|
<Label FontSize="35" FontFamily="SF-Pro-Display-Bold" Padding="10">Mes livres</Label>
|
|
|
|
|
<Rectangle HeightRequest="1" BackgroundColor="black" VerticalOptions="End" />
|
|
|
|
|
<CollectionView ItemsSource="{Binding VMMenu.MenuItemsLivre}"
|
|
|
|
|
SelectionChangedCommand="{Binding VMNav.ItemSelectedCommandMain}"
|
|
|
|
|
SelectedItem="{Binding VMNav.SelectedItem, Mode=TwoWay}"
|
|
|
|
|
SelectionMode="Single" Margin="25,0,0,0" BackgroundColor="#F9F9F9">
|
|
|
|
|
|
|
|
|
|
<CollectionView ItemsSource="{Binding MenuItemsLivre}" Margin="25,0,0,0" BackgroundColor="#F9F9F9">
|
|
|
|
|
<CollectionView.ItemTemplate>
|
|
|
|
|
<DataTemplate x:DataType="vm:ViewModelMenuItem">
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<Grid RowDefinitions="Auto" Style="{StaticResource StyleCollectionGrid}" Padding="2">
|
|
|
|
|
<Grid.GestureRecognizers>
|
|
|
|
|
<TapGestureRecognizer Command="{Binding Source={x:Reference ThisPage}, Path=Nav.MenuItemsCommand}"/>
|
|
|
|
|
</Grid.GestureRecognizers>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="25"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
@ -97,10 +97,7 @@
|
|
|
|
|
<Label FontFamily="SF-Pro-Display-Heavy" FontSize="20" Padding="10">Filtres</Label>
|
|
|
|
|
<Rectangle HeightRequest="1" BackgroundColor="black" VerticalOptions="End"/>
|
|
|
|
|
|
|
|
|
|
<CollectionView ItemsSource="{Binding VMMenu.MenuItemsFiltre}"
|
|
|
|
|
SelectionChangedCommand="{Binding VMNav.ItemSelectedCommandFiltre}"
|
|
|
|
|
SelectedItem="{Binding VMNav.SelectedItem, Mode=TwoWay}"
|
|
|
|
|
SelectionMode="Single" Margin="25,0,0,0" BackgroundColor="#F9F9F9">
|
|
|
|
|
<CollectionView ItemsSource="{Binding MenuItemsFiltre}" Margin="25,0,0,0" BackgroundColor="#F9F9F9">
|
|
|
|
|
<CollectionView.ItemTemplate>
|
|
|
|
|
<DataTemplate x:DataType="vm:ViewModelMenuItem">
|
|
|
|
|
<Grid RowDefinitions="Auto" Style="{StaticResource StyleCollectionGrid}" Padding="2">
|
|
|
|
|