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

master
Leon ENAULT 2 years ago
parent 837e821289
commit 268e520174

@ -1,62 +1,35 @@
<Window x:Class="MonApplication.MainWindow" <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="MonApplication.MainPage">
Title="Ma fenêtre" Height="450" Width="800"> <Grid Background="LightBlue">
<Grid Background="LightBlue"> <Grid.RowDefinitions>
<Grid.RowDefinitions> <RowDefinition Height="Auto"/> <!-- Ligne pour le titre -->
<RowDefinition Height="Auto"/> <RowDefinition Height="*"/> <!-- Ligne pour le contenu défilable -->
<!-- Ligne pour le texte --> </Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<!-- Ligne pour la zone carrée -->
</Grid.RowDefinitions>
<StackPanel Grid.Row="0" Orientation="Horizontal"> <!-- Titre -->
<!-- Ajoutez ici vos boutons --> <TextBlock Text="Ma Page" FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center"/>
<Button Content="Bouton 1" Width="100" Margin="10"/>
<Button Content="Bouton 2" Width="100" Margin="10"/>
<Button Content="Bouton 3" Width="100" Margin="10"/>
</StackPanel>
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto"> <!-- Contenu défilable -->
<!-- Ajoutez ici votre contenu scrollable --> <ScrollViewer Grid.Row="1">
<StackPanel> <StackPanel Orientation="Horizontal">
<TextBlock Text="Contenu Scrollable" Margin="10"/> <StackPanel>
<TextBlock Text="Ligne 1" Margin="10"/> <Button Click="Button_Click">
<TextBlock Text="Ligne 2" Margin="10"/> <Image Source="image1.jpg" Width="100" Height="100"/>
<TextBlock Text="Ligne 3" Margin="10"/> </Button>
<!-- Autres éléments --> <Button Click="Button_Click">
</StackPanel> <Image Source="image2.jpg" Width="100" Height="100"/>
</ScrollViewer> </Button>
<Button Click="Button_Click">
<!-- Zone de texte --> <Image Source="image3.jpg" Width="100" Height="100"/>
<TextBox Grid.Row="0" Background="White" Margin="10" Padding="5" /> </Button>
</StackPanel>
<!-- Zone carrée avec des bords arrondis --> <StackPanel>
<Border Grid.Row="1" Background="LightCoral" Margin="10" Padding="20" CornerRadius="10" /> <TextBlock Text="Description de l'image 1" FontSize="16"/>
<ScrollViewer VerticalScrollBarVisibility="Auto"> <TextBlock Text="Description de l'image 2" FontSize="16"/>
<StackPanel Orientation="Horizontal"> <TextBlock Text="Description de l'image 3" FontSize="16"/>
<ItemsControl ItemsSource="{Binding ImageData}"> </StackPanel>
<ItemsControl.ItemTemplate> </StackPanel>
<DataTemplate> </ScrollViewer>
<Button Command="{Binding DataContext.ImageSelectedCommand, RelativeSource={RelativeSource AncestorType=Window}}" </Grid>
CommandParameter="{Binding}"> </Page>
<Image Source="{Binding ImagePath}" Width="100" Height="100" Margin="10"/>
</Button>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
<ItemsControl ItemsSource="{Binding ImageData}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<StackPanel Margin="10">
<TextBlock Text="{Binding ImageName}" FontWeight="Bold"/>
<TextBlock Text="{Binding ImageDescription}" TextWrapping="Wrap"/>
</StackPanel>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</StackPanel>
</ScrollViewer>
</Grid>
</Window>
Loading…
Cancel
Save