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.
137 lines
8.5 KiB
137 lines
8.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="Ohara.PageInfoPersonnage"
|
|
Title="PageInfoPersonnage"
|
|
Appearing="ContentPage_Appearing"
|
|
BackgroundColor="#e2edf1">
|
|
|
|
<ScrollView Orientation="Vertical" VerticalScrollBarVisibility="Always">
|
|
<VerticalStackLayout Spacing="10" Padding="40">
|
|
<Grid ColumnSpacing="20">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="40*"/>
|
|
<ColumnDefinition Width="40*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<VerticalStackLayout Grid.Column="0" 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 - Equipage(s)" TextColor="#72a3b3"/>
|
|
</Frame>
|
|
<Frame Style="{StaticResource frameInfo}">
|
|
<Label Text="4 - Fruit(s)" TextColor="#72a3b3"/>
|
|
</Frame>
|
|
<Button Text="Suppimer ce personnage" Style="{StaticResource buttonRetirerFavInfo}" Clicked="Supprimer_Clicked"/>
|
|
</VerticalStackLayout>
|
|
<VerticalStackLayout Grid.Column="1" Spacing="4">
|
|
<Frame Style="{StaticResource frameInfo}">
|
|
<Label Style="{StaticResource titreInfo}" Text="{Binding Nom}" HorizontalOptions="Center"/>
|
|
</Frame>
|
|
<Frame Style="{StaticResource frameInfo}" >
|
|
<Image
|
|
Source="{Binding Image}"
|
|
HeightRequest="200"
|
|
WidthRequest="300"
|
|
/>
|
|
</Frame>
|
|
<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>
|
|
</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="Equipage(s) :" TextColor="#72a3b3" FontSize="20" FontAttributes="Bold"/>
|
|
<Line X1="0" Y1="0" X2="3000" Y2="0" StrokeThickness="2" Stroke="#72a3b3" />
|
|
<CollectionView x:Name="listEquip" ItemsLayout="HorizontalList" ItemsSource="{Binding Equipage}" SelectionMode="Single" SelectionChanged="listEquip_SelectionChanged">
|
|
<CollectionView.ItemTemplate>
|
|
<DataTemplate>
|
|
<Frame Style="{StaticResource frameEquip}" 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="white"
|
|
FontAttributes="Bold" />
|
|
</StackLayout>
|
|
</Frame>
|
|
</DataTemplate>
|
|
</CollectionView.ItemTemplate>
|
|
</CollectionView>
|
|
<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 frameEquip}" 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="white"
|
|
FontAttributes="Bold" />
|
|
</StackLayout>
|
|
</Frame>
|
|
</DataTemplate>
|
|
</CollectionView.ItemTemplate>
|
|
</CollectionView>
|
|
|
|
</VerticalStackLayout>
|
|
</ScrollView>
|
|
</ContentPage> |