public async Task Suspend(ItemEditor itemEditor) { var Items = VM.Vm; var composite = itemEditor.OnSuspending(); ApplicationData.Current.LocalSettings.Values[pageName] = composite; if (Items.SelectedItem != null) { ApplicationData.Current.LocalSettings.Values[selected] = Items.Items.IndexOf(Items.SelectedItem); } byte[] pixels = itemEditor.Current.Pixels; StorageFile imgFile = await PictureHandler.AsStorageFile(pixels, "Current.jpg"); if (ExistsImgFile(current)) { StorageApplicationPermissions.FutureAccessList.Remove((string)ApplicationData.Current.LocalSettings.Values[current]); } ApplicationData.Current.LocalSettings.Values[current] = StorageApplicationPermissions.FutureAccessList.Add(imgFile); //TileService.threadPoolTimer.Cancel(); }