1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| <ListView x:Name="lvInterv" ItemsSource="{Binding ElmtInfo.intervenants, Mode=TwoWay}" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" Style="{StaticResource lvTrans}">
<ListView.View>
<GridView>
<GridViewColumn>
<GridViewColumn.CellTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<ComboBox x:Name="cbInt" Margin="2" SelectedItem="{Binding Path=., Converter={StaticResource AcbConverter}, Mode=TwoWay}"
ItemsSource="{Binding Interv.Elmts.items, Source={StaticResource Locator}}" >
<ComboBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<Label Content="{Binding Path=id}" Width="30" Foreground="DarkGray" />
<Label Content="{Binding Path=typeInt.name}" />
<Label Content="{Binding Path=contact.firstName}" />
<Label Content="{Binding Path=contact.lastName}" FontWeight="Bold" />
</StackPanel>
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
</StackPanel>
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
<GridViewColumn Width="Auto">
<GridViewColumn.CellTemplate>
<DataTemplate>
<Label Content="{Binding id, Mode=OneWay}" />
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
</GridView>
</ListView.View>
</ListView> |
Partager