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.
SAE_2.01_-_Developpement_du.../Sources/Vues/Collection.xaml

36 lines
1.7 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="Vues.Collection"
BackgroundImageSource="backcollection.jpg"
>
<VerticalStackLayout>
<HorizontalStackLayout BackgroundColor="{StaticResource buttonBackgroundColor}">
<Label Text=" Monstre déjà vu"></Label>
<CheckBox x:Name="CheckboxdejaVu"
Color="{StaticResource BleuFonce}"
IsChecked="True"
CheckedChanged="CheckedVu"></CheckBox>
<Label Text=" Monstre jamais vu"></Label>
<CheckBox x:Name="CheckboxpasVu"
Color="{StaticResource BleuFonce}"
CheckedChanged="CheckedPasVu"></CheckBox>
</HorizontalStackLayout>
<Line X1="0" Y1="0" X2="1500" Y2="0" Stroke="Black" StrokeThickness="2"/>
<VerticalStackLayout BackgroundColor="AliceBlue">
<ListView x:Name="ListViewMonsters" ItemsSource="{Binding MonstresDejaVu}" Grid.Row="1">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<VerticalStackLayout>
<Image Source="{Binding ImageLink, StringFormat='collection{0}.png'}" HeightRequest="300"/>
</VerticalStackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</VerticalStackLayout>
</VerticalStackLayout>
</ContentPage>