title: WPF Cascading ComboBoxes
body: <p>I am successfully databinding and using WPF Comboboxes and have had some success with cascading some of the Comboboxes by triggering the update on the child combo when the parent combos SelectionChanged event is triggered. My combos are cboCountry, cboCity and cboTown.</p>
  
  <p>However, this isn't reliable as it seems to blank the selected value in the child combo when the parent triggers an update in the child combos dropdown contents.</p>
  
  <p>Has anyone experienced this behaviour (and has resolved it) or does anyone have any code that is successfully working without this issue?</p>
  
  <pre><code>Private Sub cboArea_SelectionChanged(ByVal sender As Object, ByVal e As System.Windows.Controls.SelectionChangedEventArgs) Handles cboArea.SelectionChanged
      Dim drv As DataRowView = CType(CType(e.Source, ComboBox).SelectedItem, DataRowView)
      If Not IsNothing(drv) Then
          Dim Area As String = drv(0).ToString
          Dim dv As New DataView(gLookupTown, "ItemGrouping = '" &amp; Area &amp; "'", "ItemValue", DataViewRowState.CurrentRows)
          cboTown.ItemsSource = dv
      End If
  End Sub
  </code></pre>