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" ?>
|
||||
<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"
|
||||
x:Class="LivreLand.View.FiltrageAuteurView"
|
||||
Title="FiltrageAuteurView">
|
||||
<VerticalStackLayout>
|
||||
<Label
|
||||
Text="Welcome to .NET MAUI!"
|
||||
VerticalOptions="Center"
|
||||
HorizontalOptions="Center" />
|
||||
</VerticalStackLayout>
|
||||
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="10"/>
|
||||
<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>
|
@ -1,12 +1,44 @@
|
||||
<?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"
|
||||
x:Class="LivreLand.View.FiltrageDateView"
|
||||
Title="FiltrageDateView">
|
||||
<VerticalStackLayout>
|
||||
<Label
|
||||
Text="Welcome to .NET MAUI!"
|
||||
VerticalOptions="Center"
|
||||
HorizontalOptions="Center" />
|
||||
</VerticalStackLayout>
|
||||
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="10"/>
|
||||
<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>
|
@ -1,55 +1,70 @@
|
||||
<?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.HeaderPage">
|
||||
x:Class="LivreLand.View.HeaderPage"
|
||||
x:Name="this"
|
||||
BindingContext="{x:Reference this}"
|
||||
BackgroundColor="{Binding HeaderColor}">
|
||||
|
||||
<Grid Margin="5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<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>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="2"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
</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"
|
||||
ImageSource="chevron_right.png"
|
||||
Rotation="180"
|
||||
ImageSource="plus.png"
|
||||
BackgroundColor="Transparent"
|
||||
MaximumHeightRequest="20"
|
||||
MaximumWidthRequest="20"
|
||||
Grid.Column="0"/>
|
||||
<Label Text="Mes livres"
|
||||
VerticalOptions="Center"
|
||||
TextColor="Red"
|
||||
Grid.Column="2"/>
|
||||
<!--<Grid.GestureRecognizers>
|
||||
<TapGestureRecognizer Command=""/>
|
||||
</Grid.GestureRecognizers>-->
|
||||
IsVisible="{Binding HeaderSwitchButtonVisible}"
|
||||
Grid.Column="4"/>
|
||||
</Grid>
|
||||
<Label Text="Tous"
|
||||
FontAttributes="Bold"
|
||||
Grid.Column="2"/>
|
||||
<Button VerticalOptions="Center"
|
||||
ImageSource="plus.png"
|
||||
BackgroundColor="Transparent"
|
||||
MaximumHeightRequest="20"
|
||||
MaximumWidthRequest="20"
|
||||
Grid.Column="4"/>
|
||||
<Button VerticalOptions="Center"
|
||||
ImageSource="plus.png"
|
||||
BackgroundColor="Transparent"
|
||||
MaximumHeightRequest="20"
|
||||
MaximumWidthRequest="20"
|
||||
Grid.Column="6"/>
|
||||
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Label Text="{Binding HeaderTitle}"
|
||||
Style="{StaticResource HeaderTitle}"
|
||||
Grid.Column="1"/>
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
|
||||
</ContentView>
|
||||
|
@ -1,8 +1,45 @@
|
||||
using Microsoft.Maui.Graphics;
|
||||
|
||||
namespace LivreLand.View;
|
||||
|
||||
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();
|
||||
}
|
||||
|
Loading…
Reference in new issue