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/PageInfoFdd.xaml

116 lines
7.2 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.PageInfoFdd"
Title="PageInfoFdd"
BackgroundColor="#e2edf1">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="2*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="300" />
<ColumnDefinition Width="90*" />
</Grid.ColumnDefinitions>
<VerticalStackLayout BackgroundColor="#72a3b3" Grid.Row="0" Grid.Column="0" Spacing="10">
<Image Source="ohara2.png" HeightRequest="200" HorizontalOptions="Center">
<Image.Clip>
<EllipseGeometry Center="150,90" RadiusX="80" RadiusY="80"/>
</Image.Clip>
</Image>
<Button Style="{StaticResource buttonMenu}" Text="Accueil" />
<Button Style="{StaticResource buttonMenu}" Text="Carte"/>
<Button Style="{StaticResource buttonMenu}" Text="Personnages"/>
<Button Style="{StaticResource buttonMenu2}" Text="Fruits du démon"/>
<Button Style="{StaticResource buttonMenu}" Text="Bateaux"/>
<Button Style="{StaticResource buttonMenu}" Text="Îles"/>
<Button Style="{StaticResource buttonMenu}" Text="Bestiaire"/>
<Button Style="{StaticResource buttonMenu}" Text="Équipages"/>
</VerticalStackLayout>
<VerticalStackLayout Grid.Row="0" Grid.Column="1" Spacing="40">
<CollectionView x:Name="listObj" >
<CollectionView.ItemTemplate>
<DataTemplate>
<VerticalStackLayout Spacing="10" Padding="20" >
<Grid ColumnSpacing="45" Padding="30">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="30*"/>
<ColumnDefinition Width="30*"/>
</Grid.ColumnDefinitions>
<VerticalStackLayout Grid.Column="0" Spacing="2" Padding="5">
<Frame BorderColor="#72a3b3" BackgroundColor="#e2edf1">
<Label Text="Sommaire :" Style="{StaticResource titreInfo}" />
</Frame>
<Frame BorderColor="#72a3b3" BackgroundColor="#e2edf1">
<Label Text="1 Description" TextColor="#72a3b3"/>
</Frame>
<Frame BorderColor="#72a3b3" BackgroundColor="#e2edf1">
<Label Text="2 Force/Faiblesses" TextColor="#72a3b3"/>
</Frame>
<Frame BorderColor="#72a3b3" BackgroundColor="#e2edf1">
<Label Text="3 Utilisateurs" TextColor="#72a3b3"/>
</Frame>
</VerticalStackLayout>
<VerticalStackLayout Grid.Column="1" Spacing="2" Padding="5">
<Frame BorderColor="#72a3b3" BackgroundColor="#e2edf1">
<Label Text="{Binding Nom}" HorizontalOptions="Center" Style="{StaticResource titreInfo}" />
</Frame>
<Frame BorderColor="#72a3b3" BackgroundColor="#e2edf1">
<Image
Source="{Binding Image}"
HeightRequest="250"
WidthRequest="250"/>
</Frame>
<Frame BorderColor="#72a3b3" BackgroundColor="#e2edf1">
<HorizontalStackLayout Spacing="5" HorizontalOptions="Center">
<Label Text="Nom romanisé :" TextColor="#72a3b3" FontAttributes="Bold"/>
<Label Text="{Binding NomRomanise}" TextColor="#72a3b3"/>
</HorizontalStackLayout>
</Frame>
<Frame BorderColor="#72a3b3" BackgroundColor="#e2edf1">
<HorizontalStackLayout Spacing="5" HorizontalOptions="Center">
<Label Text="Type :" TextColor="#72a3b3" FontAttributes="Bold"/>
<Label Text="{Binding Type}" TextColor="#72a3b3"/>
</HorizontalStackLayout>
</Frame>
<Frame BorderColor="#72a3b3" BackgroundColor="#e2edf1">
<HorizontalStackLayout Spacing="5" HorizontalOptions="Center">
<Label Text="Premier apparition (chapitre) :" TextColor="#72a3b3" FontAttributes="Bold"/>
<Label Text="{Binding PremierChap}" TextColor="#72a3b3"/>
</HorizontalStackLayout>
</Frame>
<Frame BorderColor="#72a3b3" BackgroundColor="#e2edf1">
<HorizontalStackLayout Spacing="5" HorizontalOptions="Center">
<Label Text="Premier apparition (episode) :" TextColor="#72a3b3" FontAttributes="Bold"/>
<Label Text="{Binding PremierEp}" TextColor="#72a3b3"/>
</HorizontalStackLayout>
</Frame>
</VerticalStackLayout>
</Grid>
<Label Text="Description :" Style="{StaticResource titreInfo}"/>
<Line Stroke="#72a3b3" StrokeThickness="2" X1="0" X2="1500"/>
<Label Text="{Binding Description}" TextColor="#72a3b3"/>
<Label Text="Force / Faiblesses :" Style="{StaticResource titreInfo}"/>
<Line Stroke="#72a3b3" StrokeThickness="2" X1="0" X2="1500"/>
<Label Text="{Binding Forces}" TextColor="#72a3b3"/>
<Label Text="{Binding Faiblesses}" TextColor="#72a3b3"/>
<Label Text="Utilisateurs :" Style="{StaticResource titreInfo}"/>
<Line Stroke="#72a3b3" StrokeThickness="2" X1="0" X2="1500"/>
</VerticalStackLayout>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
</VerticalStackLayout>
</Grid>
</ContentPage>