parent
6733ddb544
commit
a9a5e562f4
After Width: | Height: | Size: 167 B |
@ -1,9 +1,24 @@
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace LivreLand.View;
|
||||
|
||||
public partial class BibliothequeView : ContentPage
|
||||
{
|
||||
public ICommand FiltreAuteurCommand { get; private set; }
|
||||
|
||||
public BibliothequeView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
//Commandes navigation temporaires
|
||||
FiltreAuteurCommand = new Command(
|
||||
execute: () =>
|
||||
{
|
||||
App.Current.MainPage.Navigation.PushAsync(new FiltrageAuteurView());
|
||||
},
|
||||
canExecute: () =>
|
||||
{
|
||||
return true;
|
||||
});
|
||||
}
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
<?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.StarNotationView">
|
||||
|
||||
<HorizontalStackLayout Spacing="2">
|
||||
<Image Source="star_fill.png"
|
||||
HeightRequest="20"
|
||||
WidthRequest="20"/>
|
||||
<Image Source="star_fill.png"
|
||||
HeightRequest="20"
|
||||
WidthRequest="20"/>
|
||||
<Image Source="star_fill.png"
|
||||
HeightRequest="20"
|
||||
WidthRequest="20"/>
|
||||
<Image Source="star_fill.png"
|
||||
HeightRequest="20"
|
||||
WidthRequest="20"/>
|
||||
<Image Source="star_fill.png"
|
||||
HeightRequest="20"
|
||||
WidthRequest="20"/>
|
||||
</HorizontalStackLayout>
|
||||
|
||||
</ContentView>
|
@ -0,0 +1,9 @@
|
||||
namespace LivreLand.View.ContentViews;
|
||||
|
||||
public partial class StarNotationView : ContentView
|
||||
{
|
||||
public StarNotationView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
@ -1,9 +1,19 @@
|
||||
using LivreLand.Model;
|
||||
|
||||
namespace LivreLand.View;
|
||||
|
||||
public partial class TousView : ContentPage
|
||||
{
|
||||
public List<BookModel> AllBooks { get; set; } = new List<BookModel>()
|
||||
{
|
||||
new BookModel("Alain Damasio","La horde du contrevent","Non lu", 0),
|
||||
new BookModel("Alain Damasio",".La zone du dehors","Terminé", 0),
|
||||
new BookModel("Cixin Liu","L'équateur d'Einstein","Non lu", 0)
|
||||
};
|
||||
|
||||
public TousView()
|
||||
{
|
||||
BindingContext = this;
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
Loading…
Reference in new issue