You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
3.3 KiB

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage x:Class="Views.Animaux"
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"
Title="Vos animaux">
<ScrollView>
<toolkit:DockLayout>
<Button Text="+"
FontSize="Large"
Background="{StaticResource Primary}"
toolkit:DockLayout.DockPosition="Bottom"
VerticalOptions="End"
HorizontalOptions="End"
Margin="20"
Clicked="Button_OnClick"/>
<VerticalStackLayout>
<Grid RowDefinitions="Auto, *"
RowSpacing="20">
<ListView ItemsSource="{Binding ListeAnimaux}"
Grid.Row="1"
ItemTapped="OnClick">
<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"
HeightRequest="60"
WidthRequest="60"
Padding="0"
Margin="10"
BorderColor="{StaticResource Primary}">
<Image Source="{Binding Image}"/>
</Frame>
<VerticalStackLayout Grid.Column="1">
<Label Text="{Binding Nom}"
FontSize="Large"/>
<Label Text="{Binding NomScientifique}"
FontSize="12"/>
</VerticalStackLayout>
</Grid>
</Border>
</Grid>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</Grid>
</VerticalStackLayout>
</toolkit:DockLayout>
</ScrollView>
</ContentPage>