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-S2.01_MAUI/XMLFile1.xml

88 lines
3.1 KiB

<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>
<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>
<RowDefinition Height="Auto"/>
<!-- Ligne pour les boutons -->
<RowDefinition Height="*"/>
<!-- Ligne pour le contenu scrollable -->
</Grid.RowDefinitions>
<StackPanel Grid.Row="0" Orientation="Horizontal">
<!-- Ajoutez ici vos boutons -->
<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">
<!-- Ajoutez ici votre contenu scrollable -->
<StackPanel>
<TextBlock Text="Contenu Scrollable" Margin="10"/>
<TextBlock Text="Ligne 1" Margin="10"/>
<TextBlock Text="Ligne 2" Margin="10"/>
<TextBlock Text="Ligne 3" Margin="10"/>
<!-- Autres éléments -->
</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>