public override async Task OnNavigatedToAsync(object parameter, NavigationMode mode, IDictionary <string, object> suspensionState) { if (suspensionState.Any()) { var searchString = suspensionState[nameof(_searchString)] as string; if (searchString != null) { TextChanged.Execute(searchString); Query = searchString; } if (suspensionState.ContainsKey(nameof(PivotNavIndex))) { PivotNavIndex = (int)suspensionState[nameof(PivotNavIndex)]; } } await Task.CompletedTask; }