private static object GetStateRepresentation(LoadStateEventArgs e) { object stateRepresentation; if (e.PageState == null || !e.PageState.TryGetValue(StateKey, out stateRepresentation)) { stateRepresentation = ItemsSourceReference.Parse(e.NavigationParameter); } return(stateRepresentation); }
private void navigationHelper_LoadState(object sender, LoadStateEventArgs e) { object stateRepresentation; if (e.PageState == null || !e.PageState.TryGetValue(StateKey, out stateRepresentation)) { stateRepresentation = ItemsSourceReference.Parse(e.NavigationParameter); } LoadState(stateRepresentation); }