示例#1
0
        public void SearchForPlacesAsyncNotFound(GooglePlaceSearchResponse response, GooglePlaceSearchRequest request)
        {
            Dispatcher.BeginInvoke(() =>
            {
                ResultsListSelector.ItemsSource = response.Results;

                EmptyMessage.Visibility = Visibility.Visible;
                ResultsListSelector.Visibility = Visibility.Collapsed;
            });
        }
        private void SearchForPlacesAsyncNotFound(GooglePlaceSearchResponse response, GooglePlaceSearchRequest request)
        {
            Dispatcher.BeginInvoke(() =>
            {

                btnCancel.Visibility = Visibility.Collapsed;
                btnSearch.Visibility = Visibility.Visible;

                _progressIndicator.IsVisible = false;

                EmptyMessage.Visibility = Visibility.Visible;
                ResultsListSelector.Visibility = Visibility.Collapsed;
            });
        }
        private void GooglePlacesSearchForPlaceDelegate(GooglePlaceSearchResponse response, GooglePlaceSearchRequest request)
        {
            Dispatcher.BeginInvoke(() =>
            {
                btnCancel.Visibility = Visibility.Collapsed;
                btnSearch.Visibility = Visibility.Visible;

                _progressIndicator.IsVisible = false;

                ResultsListSelector.ItemsSource = response.Results;

                EmptyMessage.Visibility = Visibility.Collapsed;
                ResultsListSelector.Visibility = Visibility.Visible;
            });
        }