I would need to have a ItemsControl with buttons for displaying the ItemSources. And I would need a comboBox to add items to the buttons to the ItemsSource. You choose an item from the comboBox and it gets added to the ItemsControl ItemsSource list. For example, I have a list of persons in the comboBox, I click one person on the comboBox and it is added to the ItemsContol Persons Binding. How can I achieve this ?
<ItemsControl ItemsSource="{Binding Persons}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<Button Content="{Binding FullName}"/>
</DataTemplate>
</ItemsControl.ItemTemplate>
<ComboBox ItemsSource="{Binding}"></ComboBox>
</ItemsControl>
The items control need to have Buttons for the persons and a comboBox to add persons from