parent
3cb6d50b7e
commit
445e5b5cab
@ -0,0 +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"
|
||||||
|
x:Class="Views.Animaux"
|
||||||
|
Title="Animaux">
|
||||||
|
<Grid RowDefinitions="Auto, *"
|
||||||
|
RowSpacing="20"
|
||||||
|
Padding="20">
|
||||||
|
<Label Text="Les espèces"
|
||||||
|
FontSize="Large"/>
|
||||||
|
<ListView ItemsSource="{Binding ListeAnimal}"
|
||||||
|
Grid.Row="1">
|
||||||
|
<ListView.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<ViewCell>
|
||||||
|
<Grid Margin="0,0,0,4">
|
||||||
|
<Border Stroke="{StaticResource Secondary}"
|
||||||
|
StrokeThickness="2"
|
||||||
|
Margin="10"
|
||||||
|
Padding="10"
|
||||||
|
BackgroundColor="{StaticResource Primary}">
|
||||||
|
<Grid ColumnDefinitions="Auto, *"
|
||||||
|
RowDefinitions="3*, *, *"
|
||||||
|
ColumnSpacing="15">
|
||||||
|
<Frame Grid.RowSpan="3"
|
||||||
|
WidthRequest="80"
|
||||||
|
HeightRequest="80"
|
||||||
|
Padding="0"
|
||||||
|
Margin="10"
|
||||||
|
BorderColor="{StaticResource Primary}" >
|
||||||
|
<Image Source="{Binding Image}"/>
|
||||||
|
</Frame>
|
||||||
|
<Label Text="{Binding Nom}"
|
||||||
|
Grid.Column="1"
|
||||||
|
Grid.Row="0"
|
||||||
|
FontSize="Medium"/>
|
||||||
|
</Grid>
|
||||||
|
</Border>
|
||||||
|
</Grid>
|
||||||
|
</ViewCell>
|
||||||
|
</DataTemplate>
|
||||||
|
</ListView.ItemTemplate>
|
||||||
|
</ListView>
|
||||||
|
</Grid>
|
||||||
|
</ContentPage>
|
@ -0,0 +1,13 @@
|
|||||||
|
using Model;
|
||||||
|
|
||||||
|
namespace Views;
|
||||||
|
|
||||||
|
public partial class Animaux : ContentPage
|
||||||
|
{
|
||||||
|
public Zootheque Zootheque { get; set; } = new Zootheque();
|
||||||
|
public Animaux()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
BindingContext = Zootheque;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
<?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="Views.DetailEspece"
|
||||||
|
Title="DetailEspece">
|
||||||
|
<VerticalStackLayout>
|
||||||
|
<Label Text="Bienvenue"/>
|
||||||
|
<Label Text="{Binding Nom}"/>
|
||||||
|
<Label Text="{Binding NomScientifique}"/>
|
||||||
|
</VerticalStackLayout>
|
||||||
|
</ContentPage>
|
@ -0,0 +1,23 @@
|
|||||||
|
using Model;
|
||||||
|
|
||||||
|
namespace Views;
|
||||||
|
|
||||||
|
public partial class DetailEspece : ContentPage
|
||||||
|
{
|
||||||
|
Especes espece;
|
||||||
|
public Especes Espece
|
||||||
|
{
|
||||||
|
get => espece;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
espece = value;
|
||||||
|
OnPropertyChanged();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
public DetailEspece()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
BindingContext = (App.Current as App).EspeceSelectionner;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue