示例#1
0
        private void SearchTextBox_TextChanged(object sender, TextChangedEventArgs e)
        {
            String textToSearch = ((TextBox)sender).Text;

            if (textToSearch != null && textToSearch != "")
            {
                SearchListProperty = new ObservableCollection <FoodItem>(BL.getListFoodItems(textToSearch));
                IsOpenProperty     = true;
            }
            //SelectedFoodItemProperty = new FoodItem() { Name = "Pizza", Key = "123" };
        }
示例#2
0
 public List <FoodItem> getListOfItems(String FoodNameToSearch)
 {
     return(BL.getListFoodItems(FoodNameToSearch));
 }