1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| <ItemsControl itemssource="{binding LesFilms}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel Orientation="Horizontal"/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<Border BorderThickness="2">
<StackPanel Orientation="Horizontal">
<Expander Header="{Binding Nom}">
<TextBlock Text="{Binding Description}"/>
</Expander>
<TextBlock Text="{Binding DateSortie}"/>
<CheckBox IsChecked="{Binding DejaVu, Mode=TwoWay}"/>
<Button Content="Supprimer" Command="{binding DropFilmCommand}"/>
</StackPanel>
</Border>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl> |
Partager