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(); }
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; } }