|
|
@ -2,6 +2,7 @@
|
|
|
|
<ContentPage
|
|
|
|
<ContentPage
|
|
|
|
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:vm="clr-namespace:BookApp.ViewModel"
|
|
|
|
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
|
|
|
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
|
|
|
x:Class="BookApp.MainPage">
|
|
|
|
x:Class="BookApp.MainPage">
|
|
|
|
<Shell.TitleView>
|
|
|
|
<Shell.TitleView>
|
|
|
@ -37,13 +38,35 @@
|
|
|
|
<Shell.BackButtonBehavior>
|
|
|
|
<Shell.BackButtonBehavior>
|
|
|
|
<BackButtonBehavior IsVisible="False" IsEnabled="False" />
|
|
|
|
<BackButtonBehavior IsVisible="False" IsEnabled="False" />
|
|
|
|
</Shell.BackButtonBehavior>
|
|
|
|
</Shell.BackButtonBehavior>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ContentPage.Resources>
|
|
|
|
|
|
|
|
<Style TargetType="StackLayout">
|
|
|
|
|
|
|
|
<Setter Property="VisualStateManager.VisualStateGroups">
|
|
|
|
|
|
|
|
<VisualStateGroupList>
|
|
|
|
|
|
|
|
<VisualStateGroup x:Name="CommonStates">
|
|
|
|
|
|
|
|
<VisualState x:Name="Normal" />
|
|
|
|
|
|
|
|
<VisualState x:Name="Selected">
|
|
|
|
|
|
|
|
<VisualState.Setters>
|
|
|
|
|
|
|
|
<Setter Property="BackgroundColor"
|
|
|
|
|
|
|
|
Value="Purple" />
|
|
|
|
|
|
|
|
</VisualState.Setters>
|
|
|
|
|
|
|
|
</VisualState>
|
|
|
|
|
|
|
|
</VisualStateGroup>
|
|
|
|
|
|
|
|
</VisualStateGroupList>
|
|
|
|
|
|
|
|
</Setter>
|
|
|
|
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
</ContentPage.Resources>
|
|
|
|
|
|
|
|
|
|
|
|
<StackLayout>
|
|
|
|
<StackLayout>
|
|
|
|
<Label FontSize="35" FontFamily="SF-Pro-Display-Bold" Padding="10">Mes livres</Label>
|
|
|
|
<Label FontSize="35" FontFamily="SF-Pro-Display-Bold" Padding="10">Mes livres</Label>
|
|
|
|
<Rectangle HeightRequest="1" BackgroundColor="black" VerticalOptions="End" />
|
|
|
|
<Rectangle HeightRequest="1" BackgroundColor="black" VerticalOptions="End" />
|
|
|
|
<CollectionView ItemsSource="{Binding MyCollections1}" SelectionMode="Single" SelectionChanged="OnSelectionChanged" Margin="25,0,0,0" BackgroundColor="#F9F9F9">
|
|
|
|
<CollectionView ItemsSource="{Binding ViewModelMenu.MenuItemsLivre}"
|
|
|
|
|
|
|
|
SelectionChangedCommand="{Binding ViewModelNavigation.ItemSelectedCommand}"
|
|
|
|
|
|
|
|
SelectedItem="{Binding ViewModelNavigation.SelectedItem, Mode=TwoWay}"
|
|
|
|
|
|
|
|
SelectionMode="Single" Margin="25,0,0,0" BackgroundColor="#F9F9F9">
|
|
|
|
|
|
|
|
|
|
|
|
<CollectionView.ItemTemplate>
|
|
|
|
<CollectionView.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<DataTemplate x:DataType="vm:ViewModelMenuItem">
|
|
|
|
<Grid RowDefinitions="Auto" >
|
|
|
|
<Grid RowDefinitions="Auto" >
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="25"/>
|
|
|
|
<ColumnDefinition Width="25"/>
|
|
|
@ -92,9 +115,12 @@
|
|
|
|
<Label FontFamily="SF-Pro-Display-Heavy" FontSize="20" Padding="10">Filtres</Label>
|
|
|
|
<Label FontFamily="SF-Pro-Display-Heavy" FontSize="20" Padding="10">Filtres</Label>
|
|
|
|
<Rectangle HeightRequest="1" BackgroundColor="black" VerticalOptions="End"/>
|
|
|
|
<Rectangle HeightRequest="1" BackgroundColor="black" VerticalOptions="End"/>
|
|
|
|
|
|
|
|
|
|
|
|
<CollectionView ItemsSource="{Binding MyCollections2}" Margin="25,0,0,0" BackgroundColor="#F9F9F9">
|
|
|
|
<CollectionView ItemsSource="{Binding ViewModelMenu.MenuItemsFiltre}"
|
|
|
|
|
|
|
|
SelectionChangedCommand="{Binding ViewModelNavigation.ItemSelectedCommand}"
|
|
|
|
|
|
|
|
SelectedItem="{Binding ViewModelNavigation.SelectedItem, Mode=TwoWay}"
|
|
|
|
|
|
|
|
Margin="25,0,0,0" BackgroundColor="#F9F9F9">
|
|
|
|
<CollectionView.ItemTemplate>
|
|
|
|
<CollectionView.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<DataTemplate x:DataType="vm:ViewModelMenuItem">
|
|
|
|
<Grid RowDefinitions="Auto" >
|
|
|
|
<Grid RowDefinitions="Auto" >
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="25" />
|
|
|
|
<ColumnDefinition Width="25" />
|
|
|
|