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

master
Leon ENAULT 2 years ago
parent 3cb6bedf55
commit 8b826ae70e

@ -2,47 +2,12 @@
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"
Title="Ma fenêtre" Height="450" Width="800"> Title="Ma fenêtre" Height="450" Width="800">
<Grid> <Grid Background="LightBlue">
<ScrollViewer VerticalScrollBarVisibility="Auto">
<StackPanel Orientation="Horizontal">
<ItemsControl ItemsSource="{Binding ImageData}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<Button Command="{Binding DataContext.ImageSelectedCommand, RelativeSource={RelativeSource AncestorType=Window}}"
CommandParameter="{Binding}">
<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>
<Window x:Class="MonApplication.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Ma fenêtre" Height="450" Width="800">
<Grid>
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/>
<!-- Ligne pour les boutons --> <!-- Ligne pour le texte -->
<RowDefinition Height="*"/> <RowDefinition Height="Auto"/>
<!-- Ligne pour le contenu scrollable --> <!-- Ligne pour la zone carrée -->
</Grid.RowDefinitions> </Grid.RowDefinitions>
<StackPanel Grid.Row="0" Orientation="Horizontal"> <StackPanel Grid.Row="0" Orientation="Horizontal">
@ -62,26 +27,36 @@
<!-- Autres éléments --> <!-- Autres éléments -->
</StackPanel> </StackPanel>
</ScrollViewer> </ScrollViewer>
</Grid>
</Window>
<Window x:Class="MonApplication.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Ma fenêtre" Height="450" Width="800">
<Grid Background="LightBlue">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<!-- Ligne pour le texte -->
<RowDefinition Height="Auto"/>
<!-- Ligne pour la zone carrée -->
</Grid.RowDefinitions>
<!-- Zone de texte --> <!-- Zone de texte -->
<TextBox Grid.Row="0" Background="White" Margin="10" Padding="5" /> <TextBox Grid.Row="0" Background="White" Margin="10" Padding="5" />
<!-- Zone carrée avec des bords arrondis --> <!-- Zone carrée avec des bords arrondis -->
<Border Grid.Row="1" Background="LightCoral" Margin="10" Padding="20" CornerRadius="10" /> <Border Grid.Row="1" Background="LightCoral" Margin="10" Padding="20" CornerRadius="10" />
<ScrollViewer VerticalScrollBarVisibility="Auto">
<StackPanel Orientation="Horizontal">
<ItemsControl ItemsSource="{Binding ImageData}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<Button Command="{Binding DataContext.ImageSelectedCommand, RelativeSource={RelativeSource AncestorType=Window}}"
CommandParameter="{Binding}">
<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> </Grid>
</Window> </Window>
Loading…
Cancel
Save