binding combobox to another combobox in wpf

Viewed 5549

I have two combo boxes in wpf one of the combo boxes looks like so:

            <ComboBox Height="23" HorizontalAlignment="Left" Margin="244,10,0,0" Name="comboBox2" VerticalAlignment="Top" Width="120">
                <ComboBoxItem Content="Peugeut" />
                <ComboBoxItem Content="Ford" />
                <ComboBoxItem Content="BMW" />
            </ComboBox>

I was wondering how you bind the second combobox2 to list specifc car makes to the selected item in combobox1.

If Peurgeut is selected then in combobox two there should be a list:

106
206
306 

or if bmw is selected then

4 series
5 series

And so on

3 Answers
Related