Compare commits
No commits in common. 'master' and 'create-project-04-09' have entirely different histories.
master
...
create-pro
@ -1,13 +0,0 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\LibraryDTO\LibraryDTO.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
@ -1,17 +0,0 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\LibraryDTO\LibraryDTO.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
@ -1,9 +0,0 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="LivreLand.MainPage">
|
||||
|
||||
<ScrollView>
|
||||
<VerticalStackLayout
|
||||
Spacing="25"
|
||||
Padding="30,0"
|
||||
VerticalOptions="Center">
|
||||
|
||||
<Image
|
||||
Source="dotnet_bot.png"
|
||||
SemanticProperties.Description="Cute dot net bot waving hi to you!"
|
||||
HeightRequest="200"
|
||||
HorizontalOptions="Center" />
|
||||
|
||||
<Label
|
||||
Text="Hello, World!"
|
||||
SemanticProperties.HeadingLevel="Level1"
|
||||
FontSize="32"
|
||||
HorizontalOptions="Center" />
|
||||
|
||||
<Label
|
||||
Text="Welcome to .NET Multi-platform App UI"
|
||||
SemanticProperties.HeadingLevel="Level2"
|
||||
SemanticProperties.Description="Welcome to dot net Multi platform App U I"
|
||||
FontSize="18"
|
||||
HorizontalOptions="Center" />
|
||||
|
||||
<Button
|
||||
x:Name="CounterBtn"
|
||||
Text="Click me"
|
||||
SemanticProperties.Hint="Counts the number of times you click"
|
||||
Clicked="OnCounterClicked"
|
||||
HorizontalOptions="Center" />
|
||||
|
||||
</VerticalStackLayout>
|
||||
</ScrollView>
|
||||
|
||||
</ContentPage>
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 228 B |
Before Width: | Height: | Size: 785 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1015 B |
Before Width: | Height: | Size: 703 B |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 560 B |
Before Width: | Height: | Size: 108 KiB |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 714 B |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 934 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 761 B |
Before Width: | Height: | Size: 564 B |
Before Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 889 B |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 921 B |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 2.3 KiB |
@ -1,131 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:view="clr-namespace:LivreLand.View"
|
||||
xmlns:contentView="clr-namespace:LivreLand.View.ContentViews"
|
||||
xmlns:viewModel="clr-namespace:ViewModels;assembly=ViewModels"
|
||||
x:Class="LivreLand.View.ALirePlusTardView"
|
||||
Title="ALirePlusTardView">
|
||||
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="10"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<view:HeaderPage HeaderTitle="A lire plus tard"
|
||||
HeaderBackButtonText="Mes livres"
|
||||
HeaderPlusButtonVisible="True"
|
||||
HeaderSwitchButtonVisible="True"
|
||||
ButtonPlusTappedCommand="{Binding ALirePlusTardVM.Navigator.PopupHomePlusNavigationCommand}"
|
||||
ButtonBackTappedCommand="{Binding ALirePlusTardVM.Navigator.PopupBackButtonNavigationCommand}"
|
||||
Grid.Row="0"/>
|
||||
<ScrollView Grid.Row="2">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="40"/>
|
||||
<RowDefinition Height="10"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid BackgroundColor="{AppThemeBinding Light={StaticResource HeaderGray}, Dark={StaticResource Gray900}}"
|
||||
Grid.Row="0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="10"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Label Text="A lire plus tard"
|
||||
VerticalOptions="Center"
|
||||
Style="{StaticResource HeaderCollectionViewText}"
|
||||
Grid.Column="1"/>
|
||||
</Grid>
|
||||
<CollectionView ItemsSource="{Binding ALirePlusTardVM.Manager.ToBeReadBooks}"
|
||||
SelectedItem="{Binding ALirePlusTardVM.Manager.SelectedBook}"
|
||||
SelectionMode="Single"
|
||||
SelectionChangedCommand="{Binding ALirePlusTardVM.OnSelectionChangedCommand}"
|
||||
SelectionChangedCommandParameter="{Binding ALirePlusTardVM.Manager.SelectedBook}"
|
||||
Grid.Row="2">
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate x:DataType="viewModel:BookVM">
|
||||
<VerticalStackLayout Margin="10"
|
||||
Spacing="20">
|
||||
<VisualStateManager.VisualStateGroups x:Name="SelectionStates">
|
||||
<VisualStateGroup>
|
||||
<VisualState x:Name="Selected">
|
||||
<VisualState.Setters>
|
||||
<Setter Property="BackgroundColor" Value="Transparent" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
</VisualStateGroup>
|
||||
</VisualStateManager.VisualStateGroups>
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="10"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid Grid.Column="0"
|
||||
Grid.RowSpan="5">
|
||||
<Border Padding="-5,-5,-5,1"
|
||||
Margin="10,0,0,0"
|
||||
HeightRequest="100"
|
||||
WidthRequest="62"
|
||||
HorizontalOptions="Center"
|
||||
Stroke="{StaticResource Gray}"
|
||||
StrokeShape="RoundRectangle 3"
|
||||
StrokeThickness="3">
|
||||
<Border HorizontalOptions="Center"
|
||||
Stroke="{StaticResource Gray}"
|
||||
StrokeShape="RoundRectangle 3"
|
||||
StrokeThickness="3">
|
||||
<Image Source="{Binding ImageSmall}"
|
||||
Aspect="AspectFill"
|
||||
Grid.Column="0"
|
||||
Grid.RowSpan="5"/>
|
||||
</Border>
|
||||
</Border>
|
||||
<Image Source="bookmark_red.png"
|
||||
HeightRequest="10"
|
||||
WidthRequest="10"
|
||||
Margin="0,97,20,0"
|
||||
VerticalOptions="End"/>
|
||||
</Grid>
|
||||
<Label Text="{Binding Title}"
|
||||
Style="{StaticResource MasterTitleBookText}"
|
||||
Grid.Column="2"
|
||||
Grid.Row="0"/>
|
||||
<Label Text="Authors"
|
||||
Style="{StaticResource MasterAuthorBookText}"
|
||||
Grid.Column="2"
|
||||
Grid.Row="1"/>
|
||||
<Label Text="{Binding Status}"
|
||||
Style="{StaticResource MasterStateBookText}"
|
||||
Grid.Column="2"
|
||||
Grid.Row="2"/>
|
||||
<contentView:StarNotationView Grid.Column="2"
|
||||
Grid.Row="4"/>
|
||||
</Grid>
|
||||
<contentView:SeparatorCutStartView/>
|
||||
</VerticalStackLayout>
|
||||
</DataTemplate>
|
||||
</CollectionView.ItemTemplate>
|
||||
</CollectionView>
|
||||
</Grid>
|
||||
</ScrollView>
|
||||
<Grid HorizontalOptions="End"
|
||||
VerticalOptions="Center"
|
||||
Grid.RowSpan="3">
|
||||
<contentView:AlphabetVerticalMenuView/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
</ContentPage>
|
@ -1,28 +0,0 @@
|
||||
using LivreLand.Model;
|
||||
using LivreLand.ViewModel;
|
||||
|
||||
namespace LivreLand.View;
|
||||
|
||||
public partial class ALirePlusTardView : ContentPage
|
||||
{
|
||||
#region Properties
|
||||
|
||||
public ALirePlusTardVM ALirePlusTardVM { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructor
|
||||
|
||||
public ALirePlusTardView(ALirePlusTardVM aLirePlusTardVM)
|
||||
{
|
||||
ALirePlusTardVM = aLirePlusTardVM;
|
||||
InitializeComponent();
|
||||
BindingContext = this;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Methods
|
||||
|
||||
#endregion
|
||||
}
|
@ -1,144 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:view="clr-namespace:LivreLand.View"
|
||||
xmlns:contentView="clr-namespace:LivreLand.View.ContentViews"
|
||||
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
||||
x:Class="LivreLand.View.BibliothequeView"
|
||||
Title="BibliothequeView">
|
||||
|
||||
<ContentPage.Behaviors>
|
||||
<toolkit:StatusBarBehavior>
|
||||
<toolkit:StatusBarBehavior.StatusBarColor>
|
||||
<AppThemeBinding Light="{StaticResource Black}"/>
|
||||
</toolkit:StatusBarBehavior.StatusBarColor>
|
||||
</toolkit:StatusBarBehavior>
|
||||
</ContentPage.Behaviors>
|
||||
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="10"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<view:HeaderHome Grid.Row="0"
|
||||
ButtonTappedCommand="{Binding BibliothequeVM.Navigator.PopupHomePlusNavigationCommand}"/>
|
||||
<ScrollView Grid.Row="2">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="10"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="20"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="20"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Label Text="Mes Livres"
|
||||
Margin="10,0,0,0"
|
||||
Style="{StaticResource HomeTitle}"
|
||||
Grid.Row="0"/>
|
||||
|
||||
<VerticalStackLayout Grid.Row="2">
|
||||
<VerticalStackLayout.BackgroundColor>
|
||||
<AppThemeBinding Light="{StaticResource LightGray}" Dark="{StaticResource Black}" />
|
||||
</VerticalStackLayout.BackgroundColor>
|
||||
|
||||
<contentView:SeparatorEntireView/>
|
||||
|
||||
<!--Tous-->
|
||||
<contentView:HomeButtonView ButtonTitle="Tous"
|
||||
ButtonIcon="tray_2_fill.png"
|
||||
ButtonNumber="{Binding BibliothequeVM.Manager.NbBooks}"
|
||||
ButtonRedIconVisible="False"
|
||||
ButtonBlackIconVisible="True"
|
||||
ButtonTappedCommand="{Binding BibliothequeVM.AllBooksNavigateCommand}"/>
|
||||
|
||||
<contentView:SeparatorCutStartView/>
|
||||
|
||||
<!--En prêt-->
|
||||
<contentView:HomeButtonView ButtonTitle="En prêt"
|
||||
ButtonIcon="person_badge_clock_fill.png"
|
||||
ButtonNumber="1"
|
||||
ButtonRedIconVisible="False"
|
||||
ButtonBlackIconVisible="True"
|
||||
ButtonTappedCommand="{Binding BibliothequeVM.AllLoansBorrowingsNavigateCommand}"/>
|
||||
|
||||
<contentView:SeparatorCutStartView/>
|
||||
|
||||
<!--À lire plus tard-->
|
||||
<contentView:HomeButtonView ButtonTitle="À lire plus tard"
|
||||
ButtonIcon="arrow_forward.png"
|
||||
ButtonRedIconVisible="False"
|
||||
ButtonBlackIconVisible="True"
|
||||
ButtonTappedCommand="{Binding BibliothequeVM.AllToReadBooksNavigateCommand}"/>
|
||||
|
||||
<contentView:SeparatorCutStartView/>
|
||||
|
||||
<!--Statut de lecture-->
|
||||
<contentView:HomeButtonView ButtonTitle="Statut de lecture"
|
||||
ButtonIcon="eyeglasses.png"
|
||||
ButtonRedIconVisible="False"
|
||||
ButtonBlackIconVisible="True"
|
||||
ButtonTappedCommand="{Binding BibliothequeVM.AllStatusBooksNavigateCommand}"/>
|
||||
|
||||
<contentView:SeparatorCutStartView/>
|
||||
|
||||
<!--Favoris-->
|
||||
<contentView:HomeButtonView ButtonTitle="Favoris"
|
||||
ButtonIcon="heart_fill.png"
|
||||
ButtonRedIconVisible="False"
|
||||
ButtonBlackIconVisible="True"
|
||||
ButtonTappedCommand="{Binding BibliothequeVM.AllFavorisBooksNavigateCommand}"/>
|
||||
|
||||
<contentView:SeparatorEntireView/>
|
||||
</VerticalStackLayout>
|
||||
|
||||
<Label Text="Filtres"
|
||||
Margin="10,0,0,0"
|
||||
Style="{StaticResource HeaderTitle}"
|
||||
Grid.Row="4"/>
|
||||
|
||||
<VerticalStackLayout Grid.Row="6">
|
||||
<VerticalStackLayout.BackgroundColor>
|
||||
<AppThemeBinding Light="{StaticResource LightGray}" Dark="{StaticResource Black}" />
|
||||
</VerticalStackLayout.BackgroundColor>
|
||||
|
||||
<contentView:SeparatorEntireView/>
|
||||
|
||||
<!--Auteur-->
|
||||
<contentView:HomeButtonView ButtonTitle="Auteur"
|
||||
ButtonIcon="person_fill.png"
|
||||
ButtonRedIconVisible="False"
|
||||
ButtonBlackIconVisible="True"
|
||||
ButtonTappedCommand="{Binding BibliothequeVM.AllAuthorsNavigateCommand}"/>
|
||||
|
||||
<contentView:SeparatorCutStartView/>
|
||||
|
||||
<!--Date de publication-->
|
||||
<contentView:HomeButtonView ButtonTitle="Date de publication"
|
||||
ButtonIcon="calendar.png"
|
||||
ButtonRedIconVisible="False"
|
||||
ButtonBlackIconVisible="True"
|
||||
ButtonTappedCommand="{Binding BibliothequeVM.AllDatesNavigateCommand}"/>
|
||||
|
||||
<contentView:SeparatorCutStartView/>
|
||||
|
||||
<!--Note-->
|
||||
<contentView:HomeButtonView ButtonTitle="Note"
|
||||
ButtonIcon="sparkles.png"
|
||||
ButtonRedIconVisible="False"
|
||||
ButtonBlackIconVisible="True"
|
||||
ButtonTappedCommand="{Binding BibliothequeVM.AllRatingsNavigateCommand}"/>
|
||||
|
||||
<contentView:SeparatorEntireView/>
|
||||
</VerticalStackLayout>
|
||||
|
||||
</Grid>
|
||||
</ScrollView>
|
||||
</Grid>
|
||||
|
||||
</ContentPage>
|
@ -1,36 +0,0 @@
|
||||
using LivreLand.ViewModel;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace LivreLand.View;
|
||||
|
||||
public partial class BibliothequeView : ContentPage
|
||||
{
|
||||
#region Properties
|
||||
|
||||
public BibliothequeVM BibliothequeVM { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructor
|
||||
|
||||
public BibliothequeView(BibliothequeVM bibliothequeVM)
|
||||
{
|
||||
BibliothequeVM = bibliothequeVM;
|
||||
InitializeComponent();
|
||||
BindingContext = this;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Methods
|
||||
|
||||
protected override void OnAppearing()
|
||||
{
|
||||
base.OnAppearing();
|
||||
|
||||
BibliothequeVM.Manager.GetBooksFromCollectionCommand.Execute(null);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
@ -1,115 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:view="clr-namespace:LivreLand.View"
|
||||
xmlns:contentView="clr-namespace:LivreLand.View.ContentViews"
|
||||
xmlns:viewModel="clr-namespace:ViewModels;assembly=ViewModels"
|
||||
x:Class="LivreLand.View.ContactsView"
|
||||
Title="ContactsView">
|
||||
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="10"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<view:HeaderPage HeaderTitle="Contacts"
|
||||
HeaderBackButtonText="Mes livres"
|
||||
HeaderPlusButtonVisible="True"
|
||||
HeaderSwitchButtonVisible="True"
|
||||
ButtonPlusTappedCommand="{Binding ContactsVM.Navigator.PopupHomePlusNavigationCommand}"
|
||||
ButtonBackTappedCommand="{Binding ContactsVM.Navigator.PopupBackButtonNavigationCommand}"
|
||||
Grid.Row="0"/>
|
||||
<ScrollView Grid.Row="2">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="40"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="5*"/>
|
||||
<ColumnDefinition Width="5*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid BackgroundColor="{AppThemeBinding Light={StaticResource HeaderGray}, Dark={StaticResource Gray900}}"
|
||||
Grid.Row="0"
|
||||
Grid.ColumnSpan="2">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="10"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Label Text="Contacts"
|
||||
VerticalOptions="Center"
|
||||
Style="{StaticResource HeaderCollectionViewText}"
|
||||
Grid.Column="1"/>
|
||||
</Grid>
|
||||
<Grid HorizontalOptions="Center"
|
||||
Grid.Row="1"
|
||||
Grid.Column="0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="5"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Label Text="+ Add new contact"
|
||||
Grid.Row="0"/>
|
||||
<VerticalStackLayout IsVisible="{Binding ContactsVM.DataFormIsVisible}"
|
||||
Grid.Row="2">
|
||||
<Label Text="Prénom :" />
|
||||
<Entry Placeholder="Saisissez le prénom"
|
||||
Text="{Binding ContactsVM.Manager.GivenFirstName}"/>
|
||||
<Label Text="Nom :"/>
|
||||
<Entry Placeholder="Saisissez le nom"
|
||||
Text="{Binding ContactsVM.Manager.GivenLastName}"/>
|
||||
<Button Text="Enregistrer"
|
||||
BackgroundColor="Transparent"
|
||||
Command="{Binding ContactsVM.Manager.AddContactCommand}">
|
||||
<Button.BorderColor>
|
||||
<AppThemeBinding Light="{StaticResource Black}" Dark="{StaticResource White}" />
|
||||
</Button.BorderColor>
|
||||
<Button.TextColor>
|
||||
<AppThemeBinding Light="{StaticResource Black}" Dark="{StaticResource White}" />
|
||||
</Button.TextColor>
|
||||
</Button>
|
||||
</VerticalStackLayout>
|
||||
<Grid.GestureRecognizers>
|
||||
<TapGestureRecognizer Command="{Binding ContactsVM.AddContactDataFormCommand}"/>
|
||||
</Grid.GestureRecognizers>
|
||||
</Grid>
|
||||
<CollectionView ItemsSource="{Binding ContactsVM.Manager.AllContacts}"
|
||||
SelectedItem="{Binding ContactsVM.Manager.SelectedContact}"
|
||||
SelectionChangedCommand="{Binding ContactsVM.BookLendedCommand}"
|
||||
SelectionChangedCommandParameter="{Binding ContactsVM.Manager.SelectedContact}"
|
||||
SelectionMode="Single"
|
||||
Grid.Row="1"
|
||||
Grid.Column="1">
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate x:DataType="viewModel:ContactVM">
|
||||
<VerticalStackLayout>
|
||||
<Grid HorizontalOptions="Center">
|
||||
<Label>
|
||||
<Label.Text>
|
||||
<MultiBinding StringFormat="{}{0} {1}">
|
||||
<Binding Path="FirstName" />
|
||||
<Binding Path="LastName" />
|
||||
</MultiBinding>
|
||||
</Label.Text>
|
||||
</Label>
|
||||
</Grid>
|
||||
<contentView:SeparatorEntireView/>
|
||||
</VerticalStackLayout>
|
||||
</DataTemplate>
|
||||
</CollectionView.ItemTemplate>
|
||||
</CollectionView>
|
||||
</Grid>
|
||||
</ScrollView>
|
||||
<Grid HorizontalOptions="End"
|
||||
VerticalOptions="Center"
|
||||
Grid.RowSpan="3">
|
||||
<contentView:AlphabetVerticalMenuView/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
</ContentPage>
|
@ -1,27 +0,0 @@
|
||||
using LivreLand.ViewModel;
|
||||
|
||||
namespace LivreLand.View;
|
||||
|
||||
public partial class ContactsView : ContentPage
|
||||
{
|
||||
#region Properties
|
||||
|
||||
public ContactsVM ContactsVM { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructor
|
||||
|
||||
public ContactsView(ContactsVM contactsVM)
|
||||
{
|
||||
ContactsVM = contactsVM;
|
||||
InitializeComponent();
|
||||
BindingContext = this;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Methods
|
||||
|
||||
#endregion
|
||||
}
|
@ -1,37 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:contentView="clr-namespace:LivreLand.View.ContentViews"
|
||||
x:Class="LivreLand.View.ContentViews.AlphabetVerticalMenuView">
|
||||
|
||||
<VerticalStackLayout Margin="0,0,5,0"
|
||||
Spacing="-4">
|
||||
<contentView:LetterVerticalMenuView ButtonLetter="A"/>
|
||||
<!--<contentView:LetterVerticalMenuView ButtonLetter="B"/>-->
|
||||
<contentView:LetterVerticalMenuView ButtonLetter="C"/>
|
||||
<contentView:LetterVerticalMenuView ButtonLetter="D"/>
|
||||
<contentView:LetterVerticalMenuView ButtonLetter="E"/>
|
||||
<contentView:LetterVerticalMenuView ButtonLetter="F"/>
|
||||
<!--<contentView:LetterVerticalMenuView ButtonLetter="G"/>-->
|
||||
<contentView:LetterVerticalMenuView ButtonLetter="H"/>
|
||||
<!--<contentView:LetterVerticalMenuView ButtonLetter="I"/>-->
|
||||
<contentView:LetterVerticalMenuView ButtonLetter="J"/>
|
||||
<contentView:LetterVerticalMenuView ButtonLetter="K"/>
|
||||
<!--<contentView:LetterVerticalMenuView ButtonLetter="L"/>-->
|
||||
<contentView:LetterVerticalMenuView ButtonLetter="M"/>
|
||||
<!--<contentView:LetterVerticalMenuView ButtonLetter="N"/>-->
|
||||
<!--<contentView:LetterVerticalMenuView ButtonLetter="O"/>-->
|
||||
<contentView:LetterVerticalMenuView ButtonLetter="P"/>
|
||||
<!--<contentView:LetterVerticalMenuView ButtonLetter="Q"/>-->
|
||||
<contentView:LetterVerticalMenuView ButtonLetter="R"/>
|
||||
<contentView:LetterVerticalMenuView ButtonLetter="S"/>
|
||||
<contentView:LetterVerticalMenuView ButtonLetter="T"/>
|
||||
<!--<contentView:LetterVerticalMenuView ButtonLetter="U"/>-->
|
||||
<contentView:LetterVerticalMenuView ButtonLetter="V"/>
|
||||
<contentView:LetterVerticalMenuView ButtonLetter="W"/>
|
||||
<!--<contentView:LetterVerticalMenuView ButtonLetter="X"/>-->
|
||||
<!--<contentView:LetterVerticalMenuView ButtonLetter="Y"/>-->
|
||||
<!--<contentView:LetterVerticalMenuView ButtonLetter="Z"/>-->
|
||||
</VerticalStackLayout>
|
||||
|
||||
</ContentView>
|
@ -1,9 +0,0 @@
|
||||
namespace LivreLand.View.ContentViews;
|
||||
|
||||
public partial class AlphabetVerticalMenuView : ContentView
|
||||
{
|
||||
public AlphabetVerticalMenuView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
||||
x:Class="LivreLand.View.ContentViews.DetailsLivreButtonView"
|
||||
x:Name="this">
|
||||
|
||||
<Grid BindingContext="{x:Reference this}"
|
||||
Margin="10">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="10"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Image Source="{Binding ButtonIcon}"
|
||||
MaximumHeightRequest="20"
|
||||
MaximumWidthRequest="20"
|
||||
Grid.Column="0">
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="Red"/>
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
<Label Text="{Binding ButtonTitle}"
|
||||
Style="{StaticResource DetailsButtonBody}"
|
||||
TextColor="Red"
|
||||
VerticalOptions="Center"
|
||||
Grid.Column="2"/>
|
||||
<Grid.GestureRecognizers>
|
||||
<TapGestureRecognizer Command="{Binding ButtonCommand}" CommandParameter="{Binding ButtonCommandParameter}"/>
|
||||
</Grid.GestureRecognizers>
|
||||
</Grid>
|
||||
|
||||
</ContentView>
|
@ -1,40 +0,0 @@
|
||||
using System.Windows.Input;
|
||||
using ViewModels;
|
||||
|
||||
namespace LivreLand.View.ContentViews;
|
||||
|
||||
public partial class DetailsLivreButtonView : ContentView
|
||||
{
|
||||
public static readonly BindableProperty ButtonTitleProperty = BindableProperty.Create(nameof(ButtonTitle), typeof(string), typeof(DetailsLivreButtonView), string.Empty);
|
||||
public string ButtonTitle
|
||||
{
|
||||
get => (string)GetValue(DetailsLivreButtonView.ButtonTitleProperty);
|
||||
set => SetValue(DetailsLivreButtonView.ButtonTitleProperty, value);
|
||||
}
|
||||
|
||||
public static readonly BindableProperty ButtonIconProperty = BindableProperty.Create(nameof(ButtonIcon), typeof(string), typeof(DetailsLivreButtonView), string.Empty);
|
||||
public string ButtonIcon
|
||||
{
|
||||
get => (string)GetValue(DetailsLivreButtonView.ButtonIconProperty);
|
||||
set => SetValue(DetailsLivreButtonView.ButtonIconProperty, value);
|
||||
}
|
||||
|
||||
public static readonly BindableProperty ButtonCommandProperty = BindableProperty.Create(nameof(ButtonCommand), typeof(ICommand), typeof(DetailsLivreButtonView));
|
||||
public ICommand ButtonCommand
|
||||
{
|
||||
get => (ICommand)GetValue(DetailsLivreButtonView.ButtonCommandProperty);
|
||||
set => SetValue(DetailsLivreButtonView.ButtonCommandProperty, value);
|
||||
}
|
||||
|
||||
public static readonly BindableProperty ButtonCommandParameterProperty = BindableProperty.Create(nameof(ButtonCommandParameter), typeof(object), typeof(DetailsLivreButtonView));
|
||||
public object ButtonCommandParameter
|
||||
{
|
||||
get => (object)GetValue(DetailsLivreButtonView.ButtonCommandParameterProperty);
|
||||
set => SetValue(DetailsLivreButtonView.ButtonCommandParameterProperty, value);
|
||||
}
|
||||
|
||||
public DetailsLivreButtonView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
@ -1,44 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="LivreLand.View.ContentViews.EmpruntsPretsButtonView"
|
||||
x:Name="this">
|
||||
|
||||
<Grid BindingContext="{x:Reference this}">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="4*"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border Grid.Column="1">
|
||||
<Grid BackgroundColor="{StaticResource Gray}"
|
||||
Grid.Column="1">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Button Text="Prêts"
|
||||
TextColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"
|
||||
BackgroundColor="{Binding PretButtonBackgroundColor}"
|
||||
IsEnabled="{Binding PretButtonIsEnabled}"
|
||||
Command="{Binding PretsButtonCommand}"
|
||||
Margin="2"
|
||||
Grid.Column="0"/>
|
||||
<Button Text="Emprunts"
|
||||
TextColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"
|
||||
BackgroundColor="{Binding EmpruntButtonBackgroundColor}"
|
||||
IsEnabled="{Binding EmpruntButtonIsEnabled}"
|
||||
Command="{Binding EmpruntsButtonCommand}"
|
||||
Margin="2"
|
||||
Grid.Column="1"/>
|
||||
</Grid>
|
||||
<Border.StrokeShape>
|
||||
<RoundRectangle CornerRadius="10" />
|
||||
</Border.StrokeShape>
|
||||
</Border>
|
||||
|
||||
</Grid>
|
||||
|
||||
|
||||
</ContentView>
|
@ -1,61 +0,0 @@
|
||||
using LivreLand.ViewModel;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace LivreLand.View.ContentViews;
|
||||
|
||||
public partial class EmpruntsPretsButtonView : ContentView
|
||||
{
|
||||
#region Properties
|
||||
|
||||
public static readonly BindableProperty PretButtonBackgroundColorProperty = BindableProperty.Create(nameof(PretButtonBackgroundColor), typeof(Color), typeof(EmpruntsPretsButtonView));
|
||||
public Color PretButtonBackgroundColor
|
||||
{
|
||||
get => (Color)GetValue(EmpruntsPretsButtonView.PretButtonBackgroundColorProperty);
|
||||
set => SetValue(EmpruntsPretsButtonView.PretButtonBackgroundColorProperty, value);
|
||||
}
|
||||
|
||||
public static readonly BindableProperty PretButtonIsEnabledProperty = BindableProperty.Create(nameof(PretButtonIsEnabled), typeof(bool), typeof(EmpruntsPretsButtonView));
|
||||
public bool PretButtonIsEnabled
|
||||
{
|
||||
get => (bool)GetValue(EmpruntsPretsButtonView.PretButtonIsEnabledProperty);
|
||||
set => SetValue(EmpruntsPretsButtonView.PretButtonIsEnabledProperty, value);
|
||||
}
|
||||
|
||||
public static readonly BindableProperty PretsButtonCommandProperty = BindableProperty.Create(nameof(PretsButtonCommand), typeof(ICommand), typeof(EmpruntsPretsButtonView));
|
||||
public ICommand PretsButtonCommand
|
||||
{
|
||||
get { return (ICommand)GetValue(PretsButtonCommandProperty); }
|
||||
set { SetValue(PretsButtonCommandProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly BindableProperty EmpruntButtonBackgroundColorProperty = BindableProperty.Create(nameof(EmpruntButtonBackgroundColor), typeof(Color), typeof(EmpruntsPretsButtonView));
|
||||
public Color EmpruntButtonBackgroundColor
|
||||
{
|
||||
get => (Color)GetValue(EmpruntsPretsButtonView.EmpruntButtonBackgroundColorProperty);
|
||||
set => SetValue(EmpruntsPretsButtonView.EmpruntButtonBackgroundColorProperty, value);
|
||||
}
|
||||
|
||||
public static readonly BindableProperty EmpruntButtonIsEnabledProperty = BindableProperty.Create(nameof(EmpruntButtonIsEnabled), typeof(bool), typeof(EmpruntsPretsButtonView));
|
||||
public bool EmpruntButtonIsEnabled
|
||||
{
|
||||
get => (bool)GetValue(EmpruntsPretsButtonView.EmpruntButtonIsEnabledProperty);
|
||||
set => SetValue(EmpruntsPretsButtonView.EmpruntButtonIsEnabledProperty, value);
|
||||
}
|
||||
|
||||
public static readonly BindableProperty EmpruntsButtonCommandProperty = BindableProperty.Create(nameof(EmpruntsButtonCommand), typeof(ICommand), typeof(EmpruntsPretsButtonView));
|
||||
public ICommand EmpruntsButtonCommand
|
||||
{
|
||||
get { return (ICommand)GetValue(EmpruntsButtonCommandProperty); }
|
||||
set { SetValue(EmpruntsButtonCommandProperty, value); }
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Constructor
|
||||
|
||||
public EmpruntsPretsButtonView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
@ -1,59 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
||||
x:Class="LivreLand.View.ContentViews.HomeButtonView"
|
||||
x:Name="this">
|
||||
|
||||
<Grid BindingContext="{x:Reference this}"
|
||||
Margin="10">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="10"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="5"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="10"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Image Source="{Binding ButtonIcon}"
|
||||
MaximumHeightRequest="20"
|
||||
MaximumWidthRequest="20"
|
||||
IsVisible="{Binding ButtonRedIconVisible}"
|
||||
Grid.Column="0">
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="{StaticResource PinkOrange}"/>
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
<Image Source="{Binding ButtonIcon}"
|
||||
MaximumHeightRequest="20"
|
||||
MaximumWidthRequest="20"
|
||||
IsVisible="{Binding ButtonBlackIconVisible}"
|
||||
Grid.Column="0">
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"/>
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
<Label Text="{Binding ButtonTitle}"
|
||||
VerticalOptions="Center"
|
||||
Style="{StaticResource HomeButtonText}"
|
||||
Grid.Column="2"/>
|
||||
<Label Text="{Binding ButtonNumber, FallbackValue=' '}"
|
||||
VerticalOptions="Center"
|
||||
Style="{StaticResource DetailsButtonBody}"
|
||||
Grid.Column="4"/>
|
||||
<Image Source="chevron_right.png"
|
||||
MaximumHeightRequest="15"
|
||||
MaximumWidthRequest="15"
|
||||
Grid.Column="6">
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"/>
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
<Grid.GestureRecognizers>
|
||||
<TapGestureRecognizer Command="{Binding ButtonTappedCommand}" CommandParameter="{Binding CommandParameter}"/>
|
||||
</Grid.GestureRecognizers>
|
||||
</Grid>
|
||||
|
||||
</ContentView>
|
@ -1,61 +0,0 @@
|
||||
using Microsoft.Maui.Graphics;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace LivreLand.View.ContentViews;
|
||||
|
||||
public partial class HomeButtonView : ContentView
|
||||
{
|
||||
public static readonly BindableProperty ButtonTitleProperty = BindableProperty.Create(nameof(ButtonTitle), typeof(string), typeof(HomeButtonView), string.Empty);
|
||||
public string ButtonTitle
|
||||
{
|
||||
get => (string)GetValue(HomeButtonView.ButtonTitleProperty);
|
||||
set => SetValue(HomeButtonView.ButtonTitleProperty, value);
|
||||
}
|
||||
|
||||
public static readonly BindableProperty ButtonIconProperty = BindableProperty.Create(nameof(ButtonIcon), typeof(string), typeof(HomeButtonView), string.Empty);
|
||||
public string ButtonIcon
|
||||
{
|
||||
get => (string)GetValue(HomeButtonView.ButtonIconProperty);
|
||||
set => SetValue(HomeButtonView.ButtonIconProperty, value);
|
||||
}
|
||||
|
||||
public static readonly BindableProperty ButtonNumberProperty = BindableProperty.Create(nameof(ButtonNumber), typeof(string), typeof(HomeButtonView), string.Empty);
|
||||
public string ButtonNumber
|
||||
{
|
||||
get => (string)GetValue(HomeButtonView.ButtonNumberProperty);
|
||||
set => SetValue(HomeButtonView.ButtonNumberProperty, value);
|
||||
}
|
||||
|
||||
public static readonly BindableProperty ButtonRedIconVisibleProperty = BindableProperty.Create(nameof(ButtonRedIconVisible), typeof(Boolean), typeof(HomeButtonView), true);
|
||||
public Boolean ButtonRedIconVisible
|
||||
{
|
||||
get => (Boolean)GetValue(HomeButtonView.ButtonRedIconVisibleProperty);
|
||||
set => SetValue(HomeButtonView.ButtonRedIconVisibleProperty, value);
|
||||
}
|
||||
|
||||
public static readonly BindableProperty ButtonBlackIconVisibleProperty = BindableProperty.Create(nameof(ButtonBlackIconVisible), typeof(Boolean), typeof(HomeButtonView), true);
|
||||
public Boolean ButtonBlackIconVisible
|
||||
{
|
||||
get => (Boolean)GetValue(HomeButtonView.ButtonBlackIconVisibleProperty);
|
||||
set => SetValue(HomeButtonView.ButtonBlackIconVisibleProperty, value);
|
||||
}
|
||||
|
||||
public static readonly BindableProperty ButtonTappedCommandProperty = BindableProperty.Create(nameof(ButtonTappedCommand), typeof(ICommand), typeof(HomeButtonView));
|
||||
public ICommand ButtonTappedCommand
|
||||
{
|
||||
get { return (ICommand)GetValue(ButtonTappedCommandProperty); }
|
||||
set { SetValue(ButtonTappedCommandProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly BindableProperty CommandParameterProperty = BindableProperty.Create(nameof(CommandParameter), typeof(string), typeof(HomeButtonView));
|
||||
public string CommandParameter
|
||||
{
|
||||
get { return (string)GetValue(CommandParameterProperty); }
|
||||
set { SetValue(CommandParameterProperty, value); }
|
||||
}
|
||||
|
||||
public HomeButtonView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="LivreLand.View.ContentViews.LetterVerticalMenuView"
|
||||
x:Name="this">
|
||||
|
||||
<Grid BindingContext="{x:Reference this}">
|
||||
<Label x:Name="letterText"
|
||||
Text="{Binding ButtonLetter}"
|
||||
TextColor="{StaticResource Blue100Accent}"/>
|
||||
</Grid>
|
||||
|
||||
</ContentView>
|
@ -1,24 +0,0 @@
|
||||
using CommunityToolkit.Maui.Views;
|
||||
|
||||
namespace LivreLand.View.ContentViews;
|
||||
|
||||
public partial class LetterVerticalMenuView : ContentView
|
||||
{
|
||||
public static readonly BindableProperty ButtonLetterProperty = BindableProperty.Create(nameof(ButtonLetter), typeof(string), typeof(LetterVerticalMenuView), string.Empty);
|
||||
public string ButtonLetter
|
||||
{
|
||||
get => (string)GetValue(LetterVerticalMenuView.ButtonLetterProperty);
|
||||
set => SetValue(LetterVerticalMenuView.ButtonLetterProperty, value);
|
||||
}
|
||||
|
||||
public LetterVerticalMenuView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public void OnLetterTapped(object sender, TappedEventArgs e)
|
||||
{
|
||||
var plusPopup = new PopupLetterView(letterText.Text);
|
||||
App.Current.MainPage.ShowPopup(plusPopup);
|
||||
}
|
||||
}
|
@ -1,134 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<toolkit:Popup xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:contentView="clr-namespace:LivreLand.View.ContentViews"
|
||||
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
||||
x:Class="LivreLand.View.ContentViews.PopupHomePlusButtonView"
|
||||
HorizontalOptions="End"
|
||||
VerticalOptions="Start"
|
||||
Color="Transparent">
|
||||
|
||||
<Border>
|
||||
<Grid BackgroundColor="{AppThemeBinding Light={StaticResource PopupBackground}, Dark={StaticResource Black}}">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="10"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid Grid.Row="0"
|
||||
Margin="10,5,10,5">
|
||||
<Label Text="Ajouter un livre"
|
||||
Style="{StaticResource MasterStateBookText}"/>
|
||||
</Grid>
|
||||
|
||||
<contentView:SeparatorEntireView Grid.Row="1"/>
|
||||
|
||||
<Grid Grid.Row="2"
|
||||
Margin="10,5,10,5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="9*"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Label Text="Scanner un code-barres"
|
||||
Style="{StaticResource HomeButtonText}"
|
||||
Grid.Column="0"/>
|
||||
<Image Source="qr_bar_code_fill.png"
|
||||
HeightRequest="20"
|
||||
WidthRequest="20"
|
||||
Grid.Column="1">
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"/>
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
<Grid.GestureRecognizers>
|
||||
<TapGestureRecognizer Command="{Binding Navigator.NavigationCommand}"
|
||||
CommandParameter="/scan"/>
|
||||
</Grid.GestureRecognizers>
|
||||
</Grid>
|
||||
|
||||
<contentView:SeparatorEntireView Grid.Row="3"/>
|
||||
|
||||
<Grid Grid.Row="4"
|
||||
Margin="10,5,10,5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="9*"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Label Text="Scanner des codes-barres"
|
||||
LineBreakMode="WordWrap"
|
||||
MaxLines="2"
|
||||
Style="{StaticResource HomeButtonText}"
|
||||
Grid.Column="0"/>
|
||||
<Image Source="bar_code_fill.png"
|
||||
HeightRequest="20"
|
||||
WidthRequest="20"
|
||||
Grid.Column="1">
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"/>
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
</Grid>
|
||||
|
||||
<Grid BackgroundColor="{DynamicResource Gray}"
|
||||
Grid.Row="5"/>
|
||||
|
||||
<Grid Grid.Row="6"
|
||||
Margin="10,5,10,5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="9*"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Label Text="Rechercher en ligne"
|
||||
Style="{StaticResource HomeButtonText}"
|
||||
Grid.Column="0"/>
|
||||
<Image Source="magnifying_glass.png"
|
||||
HeightRequest="20"
|
||||
WidthRequest="20"
|
||||
Grid.Column="1">
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"/>
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
</Grid>
|
||||
|
||||
<contentView:SeparatorEntireView Grid.Row="7"/>
|
||||
|
||||
<Grid Grid.Row="8"
|
||||
Margin="10,5,10,5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="9*"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Label Text="Saisir l'ISBN"
|
||||
Style="{StaticResource HomeButtonText}"
|
||||
Grid.Column="0"/>
|
||||
<Image Source="keyboard_fill.png"
|
||||
HeightRequest="20"
|
||||
WidthRequest="20"
|
||||
Grid.Column="1">
|
||||
<Image.Behaviors>
|
||||
<toolkit:IconTintColorBehavior TintColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"/>
|
||||
</Image.Behaviors>
|
||||
</Image>
|
||||
<Grid.GestureRecognizers>
|
||||
<TapGestureRecognizer Command="{Binding Navigator.PopupISBNNavigationCommand}"/>
|
||||
</Grid.GestureRecognizers>
|
||||
</Grid>
|
||||
</Grid>
|
||||
<Border.StrokeShape>
|
||||
<RoundRectangle CornerRadius="10" />
|
||||
</Border.StrokeShape>
|
||||
</Border>
|
||||
|
||||
</toolkit:Popup>
|
@ -1,27 +0,0 @@
|
||||
using CommunityToolkit.Maui.Views;
|
||||
using LivreLand.ViewModel;
|
||||
|
||||
namespace LivreLand.View.ContentViews;
|
||||
|
||||
public partial class PopupHomePlusButtonView : Popup
|
||||
{
|
||||
|
||||
#region Properties
|
||||
|
||||
public NavigatorVM Navigator { get; private set; }
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region Constructor
|
||||
|
||||
public PopupHomePlusButtonView(NavigatorVM navigatorVM)
|
||||
{
|
||||
Navigator = navigatorVM;
|
||||
InitializeComponent();
|
||||
Size = new Size(0.8 * (DeviceDisplay.Current.MainDisplayInfo.Width / DeviceDisplay.Current.MainDisplayInfo.Density), 0.5 * (DeviceDisplay.Current.MainDisplayInfo.Width / DeviceDisplay.Current.MainDisplayInfo.Density));
|
||||
BindingContext = this;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
@ -1,36 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<toolkit:Popup xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:contentView="clr-namespace:LivreLand.View.ContentViews"
|
||||
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
||||
x:Class="LivreLand.View.ContentViews.PopupISBNView"
|
||||
HorizontalOptions="Center"
|
||||
VerticalOptions="Center"
|
||||
Color="Transparent">
|
||||
|
||||
<Border>
|
||||
<Grid BackgroundColor="{AppThemeBinding Light={StaticResource PopupBackground}, Dark={StaticResource Black}}">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid Grid.Row="0"
|
||||
Margin="5">
|
||||
<Label Text="Saisir l'ISBN"
|
||||
Style="{StaticResource MasterStateBookText}"/>
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Row="1"
|
||||
Margin="5">
|
||||
<Entry Text="{Binding Manager.EntryText}"
|
||||
ReturnCommand="{Binding AddBookCommand}"
|
||||
ReturnCommandParameter="{Binding Manager.EntryText}"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
<Border.StrokeShape>
|
||||
<RoundRectangle CornerRadius="10" />
|
||||
</Border.StrokeShape>
|
||||
</Border>
|
||||
|
||||
</toolkit:Popup>
|
@ -1,14 +0,0 @@
|
||||
using CommunityToolkit.Maui.Views;
|
||||
using LivreLand.ViewModel;
|
||||
|
||||
namespace LivreLand.View.ContentViews;
|
||||
|
||||
public partial class PopupISBNView : Popup
|
||||
{
|
||||
public PopupISBNView(PopupISBNVM popupISBNVM)
|
||||
{
|
||||
InitializeComponent();
|
||||
BindingContext = popupISBNVM;
|
||||
Size = new Size(0.8 * (DeviceDisplay.Current.MainDisplayInfo.Width / DeviceDisplay.Current.MainDisplayInfo.Density), 0.5 * (DeviceDisplay.Current.MainDisplayInfo.Width / DeviceDisplay.Current.MainDisplayInfo.Density));
|
||||
}
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<toolkit:Popup xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
||||
x:Class="LivreLand.View.ContentViews.PopupLetterView">
|
||||
|
||||
<Grid BackgroundColor="{StaticResource HeaderGray}">
|
||||
<Label Style="{StaticResource HomeTitle}"/>
|
||||
</Grid>
|
||||
|
||||
</toolkit:Popup>
|
@ -1,11 +0,0 @@
|
||||
using CommunityToolkit.Maui.Views;
|
||||
|
||||
namespace LivreLand.View.ContentViews;
|
||||
|
||||
public partial class PopupLetterView : Popup
|
||||
{
|
||||
public PopupLetterView(string letter)
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
@ -1,31 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="LivreLand.View.ContentViews.SearchBarView">
|
||||
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="10"/>
|
||||
<ColumnDefinition Width="4*"/>
|
||||
<ColumnDefinition Width="10"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="10"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Frame CornerRadius="10"
|
||||
BorderColor="Transparent"
|
||||
BackgroundColor="{StaticResource Gray}"
|
||||
HeightRequest="40"
|
||||
Grid.Column="1">
|
||||
<SearchBar WidthRequest="200"
|
||||
HeightRequest="50"
|
||||
HorizontalOptions="Start"/>
|
||||
</Frame>
|
||||
<Grid Grid.Column="3"
|
||||
VerticalOptions="Center">
|
||||
<Label Text="Annuler"
|
||||
Style="{StaticResource DetailsLivreBody}"/>
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
|
||||
</ContentView>
|