Mise à jour de 'XMLFile1.xml'
continuous-integration/drone/push Build is passing Details

master
Leon ENAULT 2 years ago
parent 268e520174
commit e603a30924

@ -1,35 +1,38 @@
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="MonApplication.MainPage">
<?xml version="1.0" encoding="utf-8" ?>
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="MauiApp1.NewContent1">
<VerticalStackLayout>
<Label
Text="Welcome to .NET MAUI!"
VerticalOptions="Center"
HorizontalOptions="Center" />
<Grid Background="LightBlue">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/> <!-- Ligne pour le titre -->
<RowDefinition Height="*"/> <!-- Ligne pour le contenu défilable -->
<RowDefinition Height="Auto"/>
<!-- Ligne pour le titre -->
<RowDefinition Height="*"/>
<!-- Ligne pour le contenu défilable -->
</Grid.RowDefinitions>
<!-- Titre -->
<TextBlock Text="Ma Page" FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center"/>
<Label Text="Ma Page" FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center"/>
<!-- Contenu défilable -->
<ScrollViewer Grid.Row="1">
<StackPanel Orientation="Horizontal">
<StackPanel>
<Button Click="Button_Click">
<Image Source="image1.jpg" Width="100" Height="100"/>
</Button>
<Button Click="Button_Click">
<Image Source="image2.jpg" Width="100" Height="100"/>
</Button>
<Button Click="Button_Click">
<Image Source="image3.jpg" Width="100" Height="100"/>
</Button>
</StackPanel>
<StackPanel>
<TextBlock Text="Description de l'image 1" FontSize="16"/>
<TextBlock Text="Description de l'image 2" FontSize="16"/>
<TextBlock Text="Description de l'image 3" FontSize="16"/>
</StackPanel>
</StackPanel>
</ScrollViewer>
<ScrollView Grid.Row="1">
<StackLayout Orientation="Horizontal">
<StackLayout>
<ImageButton Source="image1.jpg" WidthRequest="100" HeightRequest="100" Clicked="ImageButton_Clicked"/>
<ImageButton Source="image2.jpg" WidthRequest="100" HeightRequest="100" Clicked="ImageButton_Clicked"/>
<ImageButton Source="image3.jpg" WidthRequest="100" HeightRequest="100" Clicked="ImageButton_Clicked"/>
</StackLayout>
<StackLayout>
<Label Text="Description de l'image 1" FontSize="16"/>
<Label Text="Description de l'image 2" FontSize="16"/>
<Label Text="Description de l'image 3" FontSize="16"/>
</StackLayout>
</StackLayout>
</ScrollView>
</Grid>
</Page>
</VerticalStackLayout>
</ContentView>
Loading…
Cancel
Save