I wish to create a Custom Control, it should be a combination of predefined controls like Textbox, Button, ListBox, etc.,
Kindly refer the following Controls (Just a Sample)
<Grid.RowDefinitions>
<RowDefinition Height="30" />
<RowDefinition Height="50" />
</Grid.RowDefinitions>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="300" />
<ColumnDefinition Width="100" />
</Grid.ColumnDefinitions>
<TextBox Grid.Column="0" />
<Button Grid.Column="1" Content="Add" Margin="20,0" />
</Grid>
<ListBox ItemsSource="{Binding textBox}" Grid.Row="1" Margin="0,25">
<ListBoxItem />
</ListBox>
</Grid>
I need a combination of controls in a single custom control. I need to add the Textbox values in a ListItem while I'm hitting the button and finally I need the List from this control.
Expected Custom Control (Just a Sample)
<cust:MultiControl ItemsSource="{Binding stringCollection}" />
Description:
I need to get the list of string from the user. I added a TextBox to get the input from the User. I added a Button to add the text in a List<string>. To display the List I added a ListBox.
I need a Single control, it should inherit these three controls. In that I need an ItemsSource for two way binding. If the List<string> is updated, it should update the ItemSource.
I'm using this structure in more than 15 places. So, I wish to make it as Custom control. Kindly assist me how to implement this as a single control ?
I don't need a User Control, I need a Custom Control kindly assist me...
Item Source ViewModel Collection is not updating even-though the ItemsSource has value.


ItemSourceattribute to bind theList<string>. The Control should take of all the functionality as I mentioned in the Question. You may have solution for my requirement in User-control means, then give your answer.