I open a modal dialog showing two combo boxes. The first one is filled with a list by code. Whenenver the user selects an entry, the second combo box needs to change its underlying list. For example: the first box shows all webcams attached to the computer and the second box shows the available resolution/streaming capabilities of the selected webcam.
This one is done with System.Windows.Forms but what’s the best way to do this in Wpf and XAML?

Bind the
ItemsSourceof the first combo box to a list of available cameras. The objects should have a property of available resolutions. Bind theSelectedItemto a property of the view model. Then you can bind theItemsSourceproperty of the second combobox toSelectedCamera.AvailableResolutionsor similar.