public DataSourcesInCode() { InitializeComponent(); // Bind the category combo box to the category view // and show the products of the first category in the data grid. ClientView <Category> viewCategories = _scope.GetItems <Category>(); comboBox1.DisplayMemberPath = "CategoryName"; comboBox1.ItemsSource = viewCategories; BindGrid(viewCategories.First().CategoryID); }