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" }; }
public List <FoodItem> getListOfItems(String FoodNameToSearch) { return(BL.getListFoodItems(FoodNameToSearch)); }