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

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

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