我有兩個組合框在WPF的組合框一個看起來像這樣:綁定組合框到另一個組合框在WPF
<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>
我想知道你是如何綁定的第二combobox2列出specifc汽車製造到選定item中的組合框1。
如果選擇Peurgeut然後在組合框中2應該有一個列表:
106
206
306
如果選擇了寶馬然後
4 series
5 series
等等
您可以參考[如何:使用具有分層數據的主 - 細節模式](http://msdn.microsoft.com/zh-cn/library/ms742531.aspx)。 – Gqqnbig 2012-07-26 03:36:49