Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }