コード例 #1
0
        private async void Search(string text)
        {
            IsLoading         = true;
            _clear.Visibility = string.IsNullOrEmpty(text) ? ViewStates.Invisible : ViewStates.Visible;
            _filteredSources  = await SearchAsync(text);

            _listResults.Adapter = _resultAdapter = new SearchAdapter(_context, _filteredSources, _search);
            ItemsFiltered?.Invoke(this, new SearchBoxItemFilteredEventArgs(_filteredSources.ToList()));
            IsLoading = false;
        }
コード例 #2
0
        public void SetFilterResults(IList <TData> items)
        {
            //on first filter, init our original data
            if (originalDataSet == null)
            {
                originalDataSet = new List <TData> (dataSet);
            }

            applyAndAnimateRemovals(items);
            applyAndAnimateAdditions(items);
            applyAndAnimateMovedItems(items);

            ItemsFiltered?.Invoke(this, EventArgs.Empty);
        }