parent
0a62c5f3e5
commit
6733ddb544
@ -0,0 +1,68 @@
|
|||||||
|
<?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.PopupHomePlusButtonView">
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="10 "/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<Grid Grid.Row="0">
|
||||||
|
<Label Text="Ajouter un livre"/>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<Grid Grid.Row="1">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Label Text="Scanner un code-barres"
|
||||||
|
Grid.Column="0"/>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<Grid Grid.Row="2">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Label Text="Scanner des codes-barres"
|
||||||
|
Grid.Column="0"/>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<Grid BackgroundColor="{DynamicResource HeaderGray}"
|
||||||
|
Grid.Row="3"/>
|
||||||
|
|
||||||
|
<Grid Grid.Row="4">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Label Text="Rechercher en ligne"
|
||||||
|
Grid.Column="0"/>
|
||||||
|
<Image Source="magnifying_glass.png"
|
||||||
|
Grid.Column="2"/>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<Grid Grid.Row="5">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Label Text="Saisir l'ISBN"
|
||||||
|
Grid.Column="0"/>
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
|
</ContentView>
|
@ -0,0 +1,9 @@
|
|||||||
|
namespace LivreLand.View.ContentViews;
|
||||||
|
|
||||||
|
public partial class PopupHomePlusButtonView : ContentView
|
||||||
|
{
|
||||||
|
public PopupHomePlusButtonView()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,10 @@
|
|||||||
|
<?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>
|
||||||
|
<SearchBar/>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</ContentView>
|
@ -0,0 +1,9 @@
|
|||||||
|
namespace LivreLand.View.ContentViews;
|
||||||
|
|
||||||
|
public partial class SearchBarView : ContentView
|
||||||
|
{
|
||||||
|
public SearchBarView()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
<?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.SeparatorBigCutStartView">
|
||||||
|
<Grid>
|
||||||
|
<BoxView Color="{DynamicResource Gray}"
|
||||||
|
Margin="40,0,0,0"
|
||||||
|
HeightRequest="1"
|
||||||
|
HorizontalOptions="Fill"/>
|
||||||
|
</Grid>
|
||||||
|
</ContentView>
|
@ -0,0 +1,9 @@
|
|||||||
|
namespace LivreLand.View.ContentViews;
|
||||||
|
|
||||||
|
public partial class SeparatorBigCutStartView : ContentView
|
||||||
|
{
|
||||||
|
public SeparatorBigCutStartView()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,10 @@
|
|||||||
|
<?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.SeparatorEntireView">
|
||||||
|
<Grid>
|
||||||
|
<BoxView Color="{DynamicResource HeaderSeparatorGray}"
|
||||||
|
HeightRequest="1"
|
||||||
|
HorizontalOptions="Fill"/>
|
||||||
|
</Grid>
|
||||||
|
</ContentView>
|
@ -0,0 +1,9 @@
|
|||||||
|
namespace LivreLand.View.ContentViews;
|
||||||
|
|
||||||
|
public partial class SeparatorEntireView : ContentView
|
||||||
|
{
|
||||||
|
public SeparatorEntireView()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
@ -1,12 +1,45 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
<ContentPage 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:view="clr-namespace:LivreLand.View"
|
||||||
|
xmlns:contentView="clr-namespace:LivreLand.View.ContentViews"
|
||||||
x:Class="LivreLand.View.FiltrageAuteurView"
|
x:Class="LivreLand.View.FiltrageAuteurView"
|
||||||
Title="FiltrageAuteurView">
|
Title="FiltrageAuteurView">
|
||||||
<VerticalStackLayout>
|
|
||||||
<Label
|
<Grid>
|
||||||
Text="Welcome to .NET MAUI!"
|
<Grid.RowDefinitions>
|
||||||
VerticalOptions="Center"
|
<RowDefinition Height="auto"/>
|
||||||
HorizontalOptions="Center" />
|
<RowDefinition Height="10"/>
|
||||||
</VerticalStackLayout>
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="10"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<view:HeaderPage Grid.Row="0"
|
||||||
|
HeaderTitle="Auteur"
|
||||||
|
HeaderBackButtonText="Mes livres"
|
||||||
|
HeaderPlusButtonVisible="False"
|
||||||
|
HeaderSwitchButtonVisible="True"/>
|
||||||
|
|
||||||
|
<VerticalStackLayout BackgroundColor="{DynamicResource Light}"
|
||||||
|
Grid.Row="2">
|
||||||
|
<contentView:SeparatorEntireView/>
|
||||||
|
|
||||||
|
<contentView:SearchBarView Grid.Row="2"/>
|
||||||
|
</VerticalStackLayout>
|
||||||
|
|
||||||
|
<ScrollView Grid.Row="4">
|
||||||
|
<VerticalStackLayout Grid.Row="2">
|
||||||
|
<contentView:SeparatorEntireView/>
|
||||||
|
|
||||||
|
<!--Alain Damasio-->
|
||||||
|
<contentView:HomeButtonView ButtonTitle="Alain Damasio"
|
||||||
|
ButtonIcon="book_fill.png"
|
||||||
|
ButtonNumber="2"/>
|
||||||
|
|
||||||
|
<contentView:SeparatorBigCutStartView/>
|
||||||
|
</VerticalStackLayout>
|
||||||
|
</ScrollView>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
</ContentPage>
|
</ContentPage>
|
@ -1,12 +1,44 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
<ContentPage 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:view="clr-namespace:LivreLand.View"
|
||||||
|
xmlns:contentView="clr-namespace:LivreLand.View.ContentViews"
|
||||||
x:Class="LivreLand.View.FiltrageDateView"
|
x:Class="LivreLand.View.FiltrageDateView"
|
||||||
Title="FiltrageDateView">
|
Title="FiltrageDateView">
|
||||||
<VerticalStackLayout>
|
|
||||||
<Label
|
<Grid>
|
||||||
Text="Welcome to .NET MAUI!"
|
<Grid.RowDefinitions>
|
||||||
VerticalOptions="Center"
|
<RowDefinition Height="auto"/>
|
||||||
HorizontalOptions="Center" />
|
<RowDefinition Height="10"/>
|
||||||
</VerticalStackLayout>
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="10"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<view:HeaderPage Grid.Row="0"
|
||||||
|
HeaderTitle="Date de publication"
|
||||||
|
HeaderPlusButtonVisible="False"
|
||||||
|
HeaderSwitchButtonVisible="True"/>
|
||||||
|
|
||||||
|
<VerticalStackLayout BackgroundColor="{DynamicResource Light}"
|
||||||
|
Grid.Row="2">
|
||||||
|
<contentView:SeparatorEntireView/>
|
||||||
|
|
||||||
|
<contentView:SearchBarView Grid.Row="2"/>
|
||||||
|
</VerticalStackLayout>
|
||||||
|
|
||||||
|
<ScrollView Grid.Row="4">
|
||||||
|
<VerticalStackLayout Grid.Row="2">
|
||||||
|
<contentView:SeparatorEntireView/>
|
||||||
|
|
||||||
|
<!--2022-->
|
||||||
|
<contentView:HomeButtonView ButtonTitle="2022"
|
||||||
|
ButtonIcon="book_fill.png"
|
||||||
|
ButtonNumber="1"/>
|
||||||
|
|
||||||
|
<contentView:SeparatorBigCutStartView/>
|
||||||
|
</VerticalStackLayout>
|
||||||
|
</ScrollView>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
</ContentPage>
|
</ContentPage>
|
@ -1,55 +1,70 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
<ContentView 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"
|
||||||
x:Class="LivreLand.View.HeaderPage">
|
x:Class="LivreLand.View.HeaderPage"
|
||||||
|
x:Name="this"
|
||||||
|
BindingContext="{x:Reference this}"
|
||||||
|
BackgroundColor="{Binding HeaderColor}">
|
||||||
|
|
||||||
<Grid Margin="5">
|
<Grid Margin="5">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid>
|
||||||
<ColumnDefinition Width="auto"/>
|
|
||||||
<ColumnDefinition Width="*"/>
|
|
||||||
<ColumnDefinition Width="auto"/>
|
|
||||||
<ColumnDefinition Width="*"/>
|
|
||||||
<ColumnDefinition Width="auto"/>
|
|
||||||
<ColumnDefinition Width="2"/>
|
|
||||||
<ColumnDefinition Width="auto"/>
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
|
|
||||||
<Grid Grid.Column="0">
|
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
<ColumnDefinition Width="auto"/>
|
<ColumnDefinition Width="auto"/>
|
||||||
<ColumnDefinition Width="2"/>
|
<ColumnDefinition Width="2"/>
|
||||||
<ColumnDefinition Width="auto"/>
|
<ColumnDefinition Width="auto"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Grid Grid.Column="0">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition Width="2"/>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Button VerticalOptions="Center"
|
||||||
|
ImageSource="chevron_right.png"
|
||||||
|
Rotation="180"
|
||||||
|
BackgroundColor="Transparent"
|
||||||
|
MaximumHeightRequest="20"
|
||||||
|
MaximumWidthRequest="20"
|
||||||
|
Grid.Column="0"/>
|
||||||
|
<Label Text="{Binding HeaderBackButtonText}"
|
||||||
|
VerticalOptions="Center"
|
||||||
|
TextColor="Red"
|
||||||
|
Style="{StaticResource HeaderTitle}"
|
||||||
|
Grid.Column="2"/>
|
||||||
|
<!--<Grid.GestureRecognizers>
|
||||||
|
<TapGestureRecognizer Command=""/>
|
||||||
|
</Grid.GestureRecognizers>-->
|
||||||
|
</Grid>
|
||||||
|
<Button VerticalOptions="Center"
|
||||||
|
ImageSource="plus.png"
|
||||||
|
BackgroundColor="Transparent"
|
||||||
|
MaximumHeightRequest="20"
|
||||||
|
MaximumWidthRequest="20"
|
||||||
|
IsVisible="{Binding HeaderPlusButtonVisible}"
|
||||||
|
Grid.Column="2"/>
|
||||||
<Button VerticalOptions="Center"
|
<Button VerticalOptions="Center"
|
||||||
ImageSource="chevron_right.png"
|
ImageSource="plus.png"
|
||||||
Rotation="180"
|
|
||||||
BackgroundColor="Transparent"
|
BackgroundColor="Transparent"
|
||||||
MaximumHeightRequest="20"
|
MaximumHeightRequest="20"
|
||||||
MaximumWidthRequest="20"
|
MaximumWidthRequest="20"
|
||||||
Grid.Column="0"/>
|
IsVisible="{Binding HeaderSwitchButtonVisible}"
|
||||||
<Label Text="Mes livres"
|
Grid.Column="4"/>
|
||||||
VerticalOptions="Center"
|
|
||||||
TextColor="Red"
|
|
||||||
Grid.Column="2"/>
|
|
||||||
<!--<Grid.GestureRecognizers>
|
|
||||||
<TapGestureRecognizer Command=""/>
|
|
||||||
</Grid.GestureRecognizers>-->
|
|
||||||
</Grid>
|
</Grid>
|
||||||
<Label Text="Tous"
|
|
||||||
FontAttributes="Bold"
|
<Grid>
|
||||||
Grid.Column="2"/>
|
<Grid.ColumnDefinitions>
|
||||||
<Button VerticalOptions="Center"
|
<ColumnDefinition Width="*"/>
|
||||||
ImageSource="plus.png"
|
<ColumnDefinition Width="auto"/>
|
||||||
BackgroundColor="Transparent"
|
<ColumnDefinition Width="*"/>
|
||||||
MaximumHeightRequest="20"
|
</Grid.ColumnDefinitions>
|
||||||
MaximumWidthRequest="20"
|
<Label Text="{Binding HeaderTitle}"
|
||||||
Grid.Column="4"/>
|
Style="{StaticResource HeaderTitle}"
|
||||||
<Button VerticalOptions="Center"
|
Grid.Column="1"/>
|
||||||
ImageSource="plus.png"
|
</Grid>
|
||||||
BackgroundColor="Transparent"
|
|
||||||
MaximumHeightRequest="20"
|
|
||||||
MaximumWidthRequest="20"
|
|
||||||
Grid.Column="6"/>
|
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
</ContentView>
|
</ContentView>
|
||||||
|
@ -1,8 +1,45 @@
|
|||||||
|
using Microsoft.Maui.Graphics;
|
||||||
|
|
||||||
namespace LivreLand.View;
|
namespace LivreLand.View;
|
||||||
|
|
||||||
public partial class HeaderPage : ContentView
|
public partial class HeaderPage : ContentView
|
||||||
{
|
{
|
||||||
public HeaderPage()
|
public static readonly BindableProperty HeaderTitleProperty = BindableProperty.Create(nameof(HeaderTitle), typeof(string), typeof(HeaderPage), string.Empty);
|
||||||
|
public string HeaderTitle
|
||||||
|
{
|
||||||
|
get => (string)GetValue(HeaderPage.HeaderTitleProperty);
|
||||||
|
set => SetValue(HeaderPage.HeaderTitleProperty, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static readonly BindableProperty HeaderBackButtonTextProperty = BindableProperty.Create(nameof(HeaderBackButtonText), typeof(string), typeof(HeaderPage), string.Empty);
|
||||||
|
public string HeaderBackButtonText
|
||||||
|
{
|
||||||
|
get => (string)GetValue(HeaderPage.HeaderBackButtonTextProperty);
|
||||||
|
set => SetValue(HeaderPage.HeaderBackButtonTextProperty, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static readonly BindableProperty HeaderPlusButtonVisibleProperty = BindableProperty.Create(nameof(HeaderPlusButtonVisible), typeof(bool), typeof(HeaderPage), true);
|
||||||
|
public bool HeaderPlusButtonVisible
|
||||||
|
{
|
||||||
|
get => (bool)GetValue(HeaderPage.HeaderPlusButtonVisibleProperty);
|
||||||
|
set => SetValue(HeaderPage.HeaderPlusButtonVisibleProperty, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static readonly BindableProperty HeaderSwitchButtonVisibleProperty = BindableProperty.Create(nameof(HeaderSwitchButtonVisible), typeof(bool), typeof(HeaderPage), true);
|
||||||
|
public bool HeaderSwitchButtonVisible
|
||||||
|
{
|
||||||
|
get => (bool)GetValue(HeaderPage.HeaderSwitchButtonVisibleProperty);
|
||||||
|
set => SetValue(HeaderPage.HeaderSwitchButtonVisibleProperty, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static readonly BindableProperty HeaderColorProperty = BindableProperty.Create(nameof(HeaderColor), typeof(Color), typeof(HeaderPage), Colors.White);
|
||||||
|
public Color HeaderColor
|
||||||
|
{
|
||||||
|
get => (Color)GetValue(HeaderPage.HeaderColorProperty);
|
||||||
|
set => SetValue(HeaderPage.HeaderColorProperty, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public HeaderPage()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue