title: What is simplest way to bind this database content to WPF controls?
body: <p>I am new to WPF.</p>
  
  <p>I have a database table with 2 columns: Category, Type. Primary key combination is (Category, Type). Type is subordinate to Category, meaning 1 Category containing multiple Type.</p>
  
  <p>Now, in my WPF UI, I have 2 comboBox controls. The first bind to distinct category list in the DB table. I have done it by binding the control to a DB view of distinct(Category). The second needs to show Type list belonging to the category currently selected in first control.</p>
  
  <p>I did research but have no idea how to easily do it. I tried creating a stored procedure to select the wanted Type value list based on Category given, but don't know how to pass the selected Category to the stored procedure in XAML. Must I use code rather than XAML to do it? What is your suggestion?</p>
  
  <p>Thanks a lot</p>