Need SIMPLE working example of setting WPF MVVM ComboBox ItemsSource based on SelectedValue of second ComboBox
问题 Can anyone show me a simple working example for a WPF MVVM application to set the ItemsSource of combobox B based on the SelectedItem of ComboBox A? It seems from what I've found on this site that it gets all too complicated all too quickly. What's the "right" MVVM way to get it done? Thank you. EDIT I updated using Didier's example. An extract of my XAML: <ComboBox Name="BrowserStackDesktopOS" ItemsSource="Binding Platforms.AvailableBrowserStackDesktopOSes}" SelectedIndex="0" SelectedItem="