parent
0b474a35d7
commit
7b9a792e08
@ -0,0 +1,66 @@
|
|||||||
|
<?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.DetailAnimal"
|
||||||
|
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, Auto, Auto"
|
||||||
|
ColumnDefinitions="*, *"
|
||||||
|
RowSpacing="8">
|
||||||
|
<Label FontAttributes="Bold"
|
||||||
|
Text="Date de naissance"/>
|
||||||
|
<Label Grid.Column="1"
|
||||||
|
HorizontalOptions="End"
|
||||||
|
Text="{Binding DateNaissance}"/>
|
||||||
|
<Label Grid.Row="1"
|
||||||
|
FontAttributes="Bold"
|
||||||
|
Text="Sexe"/>
|
||||||
|
<Label Grid.Column="2"
|
||||||
|
Grid.Row="1"
|
||||||
|
HorizontalOptions="End"
|
||||||
|
Text="{Binding Sexe}"/>
|
||||||
|
<Label Grid.Row="2"
|
||||||
|
FontAttributes="Bold"
|
||||||
|
Text="Date d'adoption"/>
|
||||||
|
<Label Grid.Column="2"
|
||||||
|
Grid.Row="2"
|
||||||
|
HorizontalOptions="End"
|
||||||
|
Text="{Binding DateAdoption}"/>
|
||||||
|
<Label Grid.Row="3"
|
||||||
|
FontAttributes="Bold"
|
||||||
|
Text="Taille"/>
|
||||||
|
<Label Grid.Column="2"
|
||||||
|
Grid.Row="3"
|
||||||
|
HorizontalOptions="End"
|
||||||
|
Text="{Binding Taille}"/>
|
||||||
|
<Label Grid.Row="4"
|
||||||
|
FontAttributes="Bold"
|
||||||
|
Text="Poids"/>
|
||||||
|
<Label Grid.Column="2"
|
||||||
|
Grid.Row="4"
|
||||||
|
HorizontalOptions="End"
|
||||||
|
Text="{Binding Poids}"/>
|
||||||
|
<Label Grid.Row="5"
|
||||||
|
FontAttributes="Bold"
|
||||||
|
Text="Alimentation"/>
|
||||||
|
<Label Grid.Column="2"
|
||||||
|
Grid.Row="5"
|
||||||
|
HorizontalOptions="End"
|
||||||
|
Text="{Binding Alimentation}"/>
|
||||||
|
</Grid>
|
||||||
|
</Border>
|
||||||
|
</VerticalStackLayout>
|
||||||
|
</ScrollView>
|
||||||
|
</ContentPage>
|
@ -0,0 +1,10 @@
|
|||||||
|
namespace Views;
|
||||||
|
|
||||||
|
public partial class DetailAnimal : ContentPage
|
||||||
|
{
|
||||||
|
public DetailAnimal()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
BindingContext = (App.Current as App).AnimalSelectionner;
|
||||||
|
}
|
||||||
|
}
|
@ -1,6 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
||||||
xmlns:local="clr-namespace:Views"
|
xmlns:local="clr-namespace:Views"
|
||||||
x:Class="Views.MainPage">
|
x:Class="Views.MainPage">
|
||||||
|
|
||||||
</ContentPage>
|
</ContentPage>
|
||||||
|
Loading…
Reference in new issue