コード例 #1
0
        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;
            }
        }
コード例 #2
0
 private void InitializePlaceBar(PlacesBar placesBar)
 {
     placesBar.ApiKey           = Constants.ConstantHelper.GoogleApiKey;
     placesBar.PlacesRetrieved += PlacesSearchBar_PlacesRetrieved;
 }