private void OnSearchTextChange(object sender, TextChangedEventArgs e) { PlacesBar pb = (PlacesBar)sender; if (string.IsNullOrEmpty(pb.Text)) { listView.IsVisible = false; listView.SelectedItem = null; selectedPlace = null; return; } }
private void InitializePlaceBar(PlacesBar placesBar) { placesBar.ApiKey = Constants.ConstantHelper.GoogleApiKey; placesBar.PlacesRetrieved += PlacesSearchBar_PlacesRetrieved; }