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.
62 lines
3.5 KiB
62 lines
3.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.PageFDD"
|
|
Title="PageFDD"
|
|
Appearing="ContentPage_Appearing"
|
|
BackgroundColor="#e2edf1">
|
|
<ScrollView>
|
|
<VerticalStackLayout>
|
|
<Grid ColumnDefinitions="200,*,100,10,150" BackgroundColor="#72a3b3" Padding="10">
|
|
<SearchBar x:Name="searchBar" Placeholder="Rechercher..." Style="{StaticResource searchBarOhara}" Grid.Column="0"/>
|
|
|
|
<Picker Title="Filtrer" Grid.Column="2" SelectedIndexChanged="PickerFiltre_SelectedIndexChanged" Style="{StaticResource pickerOhara}" >
|
|
<Picker.ItemsSource>
|
|
<x:Array Type="{x:Type x:String}">
|
|
<x:String>Aucun</x:String>
|
|
<x:String>Logia</x:String>
|
|
<x:String>Paramecia</x:String>
|
|
<x:String>Zoan Carnivore</x:String>
|
|
<x:String>Zoan Mythique</x:String>
|
|
</x:Array>
|
|
</Picker.ItemsSource>
|
|
</Picker>
|
|
<Button Text="Ajouter" Clicked="Button_Clicked" Style="{StaticResource buttonBarre}" Grid.Column="4"/>
|
|
</Grid>
|
|
<FlexLayout x:Name="listeFDD" AlignItems="Center" Wrap="Wrap"
|
|
HorizontalOptions="Center"
|
|
BindableLayout.ItemsSource="{Binding Fruits}" JustifyContent="SpaceEvenly">
|
|
<BindableLayout.ItemTemplate>
|
|
<DataTemplate>
|
|
<Frame Style="{StaticResource frameObjet}" Margin="0,10,0,0" >
|
|
<Frame.GestureRecognizers>
|
|
<TapGestureRecognizer CommandParameter="{Binding Nom}" Tapped="TapGestureRecognizer_Tapped"/>
|
|
</Frame.GestureRecognizers>
|
|
<StackLayout Orientation="Vertical" Padding="5">
|
|
<Image
|
|
Source="{Binding Image}"
|
|
HeightRequest="280"
|
|
WidthRequest="280" />
|
|
<Label
|
|
HorizontalOptions="Center"
|
|
VerticalOptions="Start"
|
|
HorizontalTextAlignment="Center"
|
|
Text="{Binding Nom}"
|
|
FontSize="19"
|
|
TextColor="#72a3b3"
|
|
FontAttributes="Bold" />
|
|
<Label
|
|
VerticalOptions="Center"
|
|
HorizontalOptions="Center"
|
|
Text="{Binding Type}"
|
|
FontAttributes="Italic"
|
|
TextColor="#72a3b3"/>
|
|
</StackLayout>
|
|
</Frame>
|
|
</DataTemplate>
|
|
</BindableLayout.ItemTemplate>
|
|
</FlexLayout>
|
|
</VerticalStackLayout>
|
|
|
|
</ScrollView>
|
|
</ContentPage> |