Example #1
0
        protected virtual void OnLastPivotIndexChanged()
        {
            if (LastPivotIndex == 0 && EverywhereResults.ContentState == ContentState.None)
            {
                EverywhereResults.Refresh();
            }
            else if (LastPivotIndex == 1 && InCollectionResults.ContentState == ContentState.None)
            {
                InCollectionResults.Refresh();
            }

            ActivateSelectionModeCommand.RaiseCanExecuteChanged();
        }
Example #2
0
        protected void Search()
        {
            _everywhereOffset   = 0;
            _inCollectionOffset = 0;
            _currentQuery       = Query;

            EverywhereResults.Clear();
            InCollectionResults.Clear();

            if (LastPivotIndex == 0)
            {
                EverywhereResults.Refresh();
                InCollectionResults.HasMoreItems = false;
                InCollectionResults.ContentState = ContentState.None;
            }
            else
            {
                InCollectionResults.Refresh();
                EverywhereResults.HasMoreItems = false;
                EverywhereResults.ContentState = ContentState.None;
            }
        }