예제 #1
0
        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();
        }
예제 #2
0
        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();
        }