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.
Ohara_MAUI/Sources/Ohara/PageInfoPersonnage.xaml

124 lines
8.0 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"
xmlns:local="clr-namespace:Ohara"
x:Class="Ohara.PageInfoPersonnage"
Title="PageInfoPersonnage"
Appearing="ContentPage_Appearing"
BackgroundColor="#e2edf1">
<ScrollView Orientation="Vertical" VerticalScrollBarVisibility="Always">
<VerticalStackLayout Spacing="10" Padding="40">
<Grid ColumnDefinitions="40*,40*" ColumnSpacing="30">
<VerticalStackLayout Spacing="4">
<Button x:Name="bouttonFav" Text="Ajouter aux favoris" Style="{StaticResource buttonFavsInfo}" Clicked="AjouterFav_Clicked" />
<Button x:Name="retirerFav" Text="Retirer des favoris" IsVisible="false" Style="{StaticResource buttonRetirerFavInfo}" Clicked="RetirerFav_Clicked"/>
<Frame Style="{StaticResource frameInfo}">
<Label Text="Sommaire" Style="{StaticResource titreInfo}"/>
</Frame>
<Frame Style="{StaticResource frameInfo}">
<Label Text="1 - Biographie" TextColor="#72a3b3"/>
</Frame>
<Frame Style="{StaticResource frameInfo}">
<Label Text="2 - Citation" TextColor="#72a3b3"/>
</Frame>
<Frame Style="{StaticResource frameInfo}">
<Label Text="3 - Fruit(s)" TextColor="#72a3b3"/>
</Frame>
<FlexLayout AlignItems="Start" Wrap="NoWrap" Direction="Row" JustifyContent="SpaceEvenly" HorizontalOptions="Start">
<Button Text="Supprimer" Style="{StaticResource buttonRetirerFavInfo}" Clicked="Supprimer_Clicked" FlexLayout.Basis="49.5%"/>
<Button Text="Modifier" Style="{StaticResource buttonFavsInfo}" Clicked="Modifier_Clicked" FlexLayout.Basis="49.5%"/>
</FlexLayout>
</VerticalStackLayout>
<VerticalStackLayout Grid.Column="1" Spacing="4">
<Frame Style="{StaticResource frameInfo}">
<Label Style="{StaticResource titreInfo}" Text="{Binding Nom}" HorizontalOptions="Center"/>
</Frame>
<FlexLayout HorizontalOptions="Center" AlignItems="Start" Wrap="Wrap" Direction="Row" JustifyContent="Start" >
<Frame CornerRadius="25"
BorderColor="#e2edf1"
IsClippedToBounds="True"
Padding="0"
HeightRequest="400"
>
<Image
Source="{Binding Image}"
Aspect="AspectFit"
/>
</Frame>
<VerticalStackLayout Spacing="4">
<Button x:Name="bouttonAffiliation" Text="{Binding Equipage.Nom, StringFormat='Equipage : {0}'}" Style="{StaticResource buttonFavsInfo}" Clicked="ButtonAffiliation_Clicked" ToolTipProperties.Text="Clickez pour en savoir plus..." FontSize="15"/>
<Frame Style="{StaticResource frameInfo}">
<StackLayout HorizontalOptions="Center" Orientation="Horizontal" Spacing="5">
<Label Text="Prime :" TextColor="#72a3b3" FontAttributes="Bold"/>
<Label Text="{Binding Prime}" TextColor="#72a3b3"/>
<Label Text="berrys" TextColor="#72a3b3"/>
</StackLayout>
</Frame>
<Frame Style="{StaticResource frameInfo}">
<StackLayout HorizontalOptions="Center" Orientation="Horizontal" Spacing="5">
<Label Text="Épithète :" TextColor="#72a3b3" FontAttributes="Bold"/>
<Label Text="{Binding Epithete}" TextColor="#72a3b3"/>
</StackLayout>
</Frame>
<Frame Style="{StaticResource frameInfo}">
<StackLayout HorizontalOptions="Center" Orientation="Horizontal" Spacing="5">
<Label Text="Âge :" TextColor="#72a3b3" FontAttributes="Bold"/>
<Label Text="{Binding Age}" TextColor="#72a3b3"/>
<Label Text="ans" TextColor="#72a3b3"/>
</StackLayout>
</Frame>
<Frame Style="{StaticResource frameInfo}">
<StackLayout HorizontalOptions="Center" Orientation="Horizontal" Spacing="5">
<Label Text="Taille :" TextColor="#72a3b3" FontAttributes="Bold"/>
<Label Text="{Binding Taille}" TextColor="#72a3b3"/>
<Label Text="mètres" TextColor="#72a3b3"/>
</StackLayout>
</Frame>
<Frame Style="{StaticResource frameInfo}">
<StackLayout HorizontalOptions="Center" Orientation="Horizontal" Spacing="5">
<Label Text="Origine :" TextColor="#72a3b3" FontAttributes="Bold"/>
<Label Text="{Binding Origine}" TextColor="#72a3b3"/>
</StackLayout>
</Frame>
</VerticalStackLayout>
</FlexLayout>
</VerticalStackLayout>
</Grid>
<Label Text="Biographie :" TextColor="#72a3b3" FontSize="20" FontAttributes="Bold"/>
<Line X1="0" Y1="0" X2="3000" Y2="0" StrokeThickness="2" Stroke="#72a3b3" />
<Label Text="{Binding Biographie}" Style="{StaticResource paragrapheInfo}"/>
<Label Text="Citation(s) :" TextColor="#72a3b3" FontSize="20" FontAttributes="Bold"/>
<Line X1="0" Y1="0" X2="3000" Y2="0" StrokeThickness="2" Stroke="#72a3b3" />
<Label Text="{Binding Citation}" Style="{StaticResource citationPerso}" />
<Label Text="Fruit :" TextColor="#72a3b3" FontSize="20" FontAttributes="Bold"/>
<Line X1="0" Y1="0" X2="3000" Y2="0" StrokeThickness="2" Stroke="#72a3b3" />
<CollectionView x:Name="listFruit" ItemsLayout="HorizontalList" ItemsSource="{Binding Fruit}" SelectionMode="Single" SelectionChanged="listFruit_SelectionChanged">
<CollectionView.ItemTemplate>
<DataTemplate>
<Frame Style="{StaticResource frameObjet}" Margin="5">
<StackLayout Orientation="Vertical">
<Image Source="{Binding Image}"
HeightRequest="175"
WidthRequest="175"/>
<Label
HorizontalOptions="Center"
VerticalOptions="Start"
HorizontalTextAlignment="Center"
Text="{Binding Nom}"
FontSize="15"
TextColor="#72a3b3"
FontAttributes="Bold" />
</StackLayout>
</Frame>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
</VerticalStackLayout>
</ScrollView>
</ContentPage>