/// <summary> /// Preserves state associated with this page in case the application is suspended or the /// page is discarded from the navigation cache. Values must conform to the serialization /// requirements of <see cref="SuspensionManager.SessionState"/>. /// </summary> /// <param name="sender">The source of the event; typically <see cref="NavigationHelper"/></param> /// <param name="e">Event receivedBytes that provides an empty dictionary to be populated with /// serializable state.</param> private void NavigationHelper_SaveState(object sender, SaveStateEventArgs e) { }
private void NavigationHelper_SaveState(object sender, SaveStateEventArgs e) { //Windows.Storage.ApplicationDataContainer localSettings = Windows.Storage.ApplicationData.Current.LocalSettings; //var toolboxSettingContainerKey = SettingPivotViewModel.nRFToolboxSetting; //var dfuSettingViewModel = SettingPivotViewModel.GetInstance().GetDeviceFirmwareUpdateSettingPageViewModel(); //var chosenFolder = dfuSettingViewModel.FavoriteFolderName; //if (localSettings.Containers.ContainsKey(toolboxSettingContainerKey) && chosenFolder != null) //{ // localSettings.Containers[toolboxSettingContainerKey].Values[dfuSettingViewModel.FavoriteFolderToken] = dfuSettingViewModel.FavoriteFolder; //} }