Exemplo n.º 1
0
        public async Task<bool> SaveNavigationState(string id, IFrameFacade frame)
        {
            // get state
            var navigationState = frame.GetNavigationState();

            // persist state
            var folder = ApplicationData.Current.LocalCacheFolder;
            var file = await folder.CreateFileAsync(buildKey(id), CreationCollisionOption.OpenIfExists);
            await FileIO.WriteTextAsync(file, navigationState);

            return true;
        }
Exemplo n.º 2
0
        public async Task <bool> SaveNavigationState(string id, IFrameFacade frame)
        {
            // get state
            var navigationState = frame.GetNavigationState();

            // persist state
            var folder = ApplicationData.Current.LocalCacheFolder;
            var file   = await folder.CreateFileAsync(buildKey(id), CreationCollisionOption.OpenIfExists);

            await FileIO.WriteTextAsync(file, navigationState);

            return(true);
        }
Exemplo n.º 3
0
        private void SaveFrameNavigationState(IFrameFacade frame)
        {
            var frameState = GetSessionStateForFrame(frame);

            frameState["Navigation"] = frame.GetNavigationState();
        }
 private void SaveFrameNavigationState(IFrameFacade frame)
 {
     var frameState = GetSessionStateForFrame(frame);
     frameState["Navigation"] = frame.GetNavigationState();
 }
Exemplo n.º 5
0
 private void SaveFrameNavigationState(IFrameFacade frame)
 {
     var frameState = GetSessionStateForFrame(frame);
     frameState[Constants.SessionStateKeyNavigation] = frame.GetNavigationState();
 }
Exemplo n.º 6
0
 /// <summary>
 /// Returns the navigation state string for App life cycle.
 /// </summary>
 /// <returns>The navigation state string</returns>
 public string GetNavigationState()
 {
     return(frameFacade.GetNavigationState());
 }
Exemplo n.º 7
0
        private void SaveFrameNavigationState(IFrameFacade frame)
        {
            var frameState = GetSessionStateForFrame(frame);

            frameState[Constants.SessionStateKeyNavigation] = frame.GetNavigationState();
        }