1 2 3 4 5 6 7 8 9 10 11 12 13
| <Window.Resources>
<DataTemplate x:Key="MonTemplate">
<StackPanel Width="244" Height="73" Orientation="Vertical">
<Image Width="50" Height="50" Margin="13,-7,0,0"/>
<TextBlock Width="158" Height="47" Text="{Binding Path=Name, Mode=Default}" TextWrapping="Wrap" Margin="12,-4,0,0"/>
</StackPanel>
</DataTemplate>
</Window.Resources>
<Grid>
<ListBox IsSynchronizedWithCurrentItem="True" x:Name="ListeFichier" ItemsSource="{Binding}" ItemTemplate="{DynamicResource MonTemplate}" RenderTransformOrigin="0.5,0.5" Width="Auto" Height="Auto" Background="{x:Null}" BorderThickness="0,0,0,0" Grid.Column="3" />
</Grid> |
Partager