private void tlACPeople_Populating(object sender, PopulatingEventArgs e) { string text = tlACPeople.Text; var count = _productProvider.CountFindProducts(text); var result = _productProvider.FindProducts(text); tlACPeople.ItemsSource = result; tlACPeople.PopulateComplete(); }
private void tlACPeople_Populating(object sender, PopulatingEventArgs e) { string text = tlACPeople.Text; var count = _productProvider.CountFindProducts(text); var result = _productProvider.FindProducts(text); if (count > result.Count) { result.Add(new ProductItemViewModel { Id = 0, Name = "..." }); } tlACPeople.ItemsSource = result; tlACPeople.PopulateComplete(); }