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.
165 lines
7.5 KiB
165 lines
7.5 KiB
<?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="{Binding Nom}">
|
|
<ScrollView>
|
|
<VerticalStackLayout>
|
|
<Image Source="{Binding Image}"
|
|
MaximumWidthRequest="300"
|
|
Margin="20"
|
|
HorizontalOptions="Center"/>
|
|
<Border Stroke="{StaticResource Secondary}"
|
|
StrokeThickness="2"
|
|
Margin="20"
|
|
Padding="10"
|
|
Background="{StaticResource Primary}"
|
|
VerticalOptions="Start"
|
|
Grid.Column="1">
|
|
<Grid RowDefinitions="Auto, Auto, Auto, Auto, Auto"
|
|
ColumnDefinitions="*, *"
|
|
RowSpacing="8">
|
|
<Label FontAttributes="Bold"
|
|
Text="Nom scientifique"/>
|
|
<Label Grid.Column="1"
|
|
HorizontalOptions="End"
|
|
Text="{Binding NomScientifique}"/>
|
|
<Label Grid.Row="1"
|
|
FontAttributes="Bold"
|
|
Text="Espérance de vie"/>
|
|
<Label Grid.Column="2"
|
|
Grid.Row="1"
|
|
HorizontalOptions="End"
|
|
Text="{Binding EsperanceVie}"/>
|
|
<Label Grid.Row="2"
|
|
FontAttributes="Bold"
|
|
Text="Poids moyen"/>
|
|
<Label Grid.Column="2"
|
|
Grid.Row="2"
|
|
HorizontalOptions="End"
|
|
Text="{Binding PoidsMoyen}"/>
|
|
<Label Grid.Row="3"
|
|
FontAttributes="Bold"
|
|
Text="Taille moyenne"/>
|
|
<Label Grid.Column="2"
|
|
Grid.Row="3"
|
|
HorizontalOptions="End"
|
|
Text="{Binding TailleMoyenne}"/>
|
|
</Grid>
|
|
</Border>
|
|
|
|
<VerticalStackLayout
|
|
Margin="20">
|
|
<Label Text="Comportement"
|
|
FontSize="Large"/>
|
|
<Border Stroke="{StaticResource Secondary}"
|
|
StrokeThickness="2"
|
|
Padding="10"
|
|
Background="{StaticResource Primary}">
|
|
<Label Text="{Binding Comportement}"/>
|
|
</Border>
|
|
</VerticalStackLayout>
|
|
|
|
<VerticalStackLayout
|
|
Margin="20">
|
|
<Label Text="Santé"
|
|
FontSize="Large"/>
|
|
<Border Stroke="{StaticResource Secondary}"
|
|
StrokeThickness="2"
|
|
Padding="10"
|
|
Background="{StaticResource Primary}">
|
|
<Label Text="{Binding Sante}"/>
|
|
</Border>
|
|
</VerticalStackLayout>
|
|
|
|
<VerticalStackLayout
|
|
Margin="20">
|
|
<Label Text="Education"
|
|
FontSize="Large"/>
|
|
<Border Stroke="{StaticResource Secondary}"
|
|
StrokeThickness="2"
|
|
Padding="10"
|
|
Background="{StaticResource Primary}">
|
|
<Label Text="{Binding Education}"/>
|
|
</Border>
|
|
</VerticalStackLayout>
|
|
|
|
<VerticalStackLayout
|
|
Margin="20">
|
|
<Label Text="Entretien"
|
|
FontSize="Large"/>
|
|
<Border Stroke="{StaticResource Secondary}"
|
|
StrokeThickness="2"
|
|
Padding="10"
|
|
Background="{StaticResource Primary}">
|
|
<Label Text="{Binding Entretien}"/>
|
|
</Border>
|
|
</VerticalStackLayout>
|
|
|
|
<VerticalStackLayout Margin="20">
|
|
<Label Text="Coût potentiel"
|
|
FontSize="Large"/>
|
|
<Border Stroke="{StaticResource Secondary}"
|
|
StrokeThickness="2"
|
|
Padding="10"
|
|
Background="{StaticResource Primary}">
|
|
<Label Text="{Binding Cout}"/>
|
|
</Border>
|
|
</VerticalStackLayout>
|
|
|
|
<VerticalStackLayout Margin="20">
|
|
<Label Text="Conseils"
|
|
FontSize="Large"/>
|
|
<Border Stroke="{StaticResource Secondary}"
|
|
StrokeThickness="2"
|
|
Padding="10"
|
|
Background="{StaticResource Primary}">
|
|
<Label Text="{Binding Conseil}"/>
|
|
</Border>
|
|
</VerticalStackLayout>
|
|
|
|
<Grid RowDefinitions="Auto, *"
|
|
RowSpacing="20"
|
|
Padding="20">
|
|
<Label Text="Les races"
|
|
FontSize="Large"/>
|
|
<ListView ItemsSource="{Binding ListeRaces}"
|
|
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>
|
|
</ScrollView>
|
|
</ContentPage> |