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.
134 lines
7.3 KiB
134 lines
7.3 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.PageInfoEquipage"
|
|
Title="PageInfoEquipage"
|
|
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 - Description" TextColor="#72a3b3"/>
|
|
</Frame>
|
|
<Frame Style="{StaticResource frameInfo}">
|
|
<Label Text="2 - Membre(s)" TextColor="#72a3b3"/>
|
|
</Frame>
|
|
<Frame Style="{StaticResource frameInfo}">
|
|
<Label Text="3 - Allié(s)" TextColor="#72a3b3"/>
|
|
</Frame>
|
|
<FlexLayout AlignItems="Start" Wrap="Wrap" Direction="Row" JustifyContent="SpaceEvenly" >
|
|
<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}"/>
|
|
</Frame>
|
|
<Frame BorderColor="#72a3b3">
|
|
<Image
|
|
Source="{Binding Image}"
|
|
HeightRequest="200"
|
|
WidthRequest="300"
|
|
Aspect="AspectFit"
|
|
|
|
/>
|
|
</Frame>
|
|
<Frame Style="{StaticResource frameInfo}">
|
|
<StackLayout HorizontalOptions="Center" Orientation="Horizontal" Spacing="5">
|
|
<Label Text="Nom Romanisé :" TextColor="#72a3b3" FontAttributes="Bold"/>
|
|
<Label Text="{Binding NomRomanise}" TextColor="#72a3b3"/>
|
|
</StackLayout>
|
|
</Frame>
|
|
<Frame Style="{StaticResource frameInfo}">
|
|
<StackLayout HorizontalOptions="Center" Orientation="Horizontal" Spacing="5">
|
|
<Label Text="Region :" TextColor="#72a3b3" FontAttributes="Bold"/>
|
|
<Label Text="{Binding Region}" TextColor="#72a3b3"/>
|
|
</StackLayout>
|
|
</Frame>
|
|
<Frame Style="{StaticResource frameInfo}">
|
|
<StackLayout HorizontalOptions="Center" Orientation="Horizontal" Spacing="5">
|
|
<Label Text="Statut :" TextColor="#72a3b3" FontAttributes="Bold"/>
|
|
<Label Text="{Binding Statut}" TextColor="#72a3b3"/>
|
|
</StackLayout>
|
|
</Frame>
|
|
</VerticalStackLayout>
|
|
|
|
|
|
|
|
</Grid>
|
|
<Label Text="Description :" TextColor="#72a3b3" FontSize="20" FontAttributes="Bold"/>
|
|
<Line X1="0" Y1="0" X2="3000" Y2="0" StrokeThickness="2" Stroke="#72a3b3" />
|
|
<Label Text="{Binding Description}" TextColor="#72a3b3" />
|
|
<Label Text="Membre(s) :" TextColor="#72a3b3" FontSize="20" FontAttributes="Bold"/>
|
|
<Line X1="0" Y1="0" X2="3000" Y2="0" StrokeThickness="2" Stroke="#72a3b3" />
|
|
<CollectionView x:Name="listMembre" ItemsLayout="HorizontalList" ItemsSource="{Binding Membre}" SelectionMode="Single" SelectionChanged="listMembre_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>
|
|
<Label Text="Allié(s) :" TextColor="#72a3b3" FontSize="20" FontAttributes="Bold"/>
|
|
<Line X1="0" Y1="0" X2="3000" Y2="0" StrokeThickness="2" Stroke="#72a3b3" />
|
|
<CollectionView x:Name="listAlle" ItemsLayout="HorizontalList" ItemsSource="{Binding Allie}" SelectionMode="Single" SelectionChanged="listAlle_SelectionChanged" >
|
|
<CollectionView.ItemTemplate>
|
|
<DataTemplate>
|
|
|
|
<Frame Style="{StaticResource frameEquip}" >
|
|
<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> |