/// <summary> /// Navigate to the passed Folder /// </summary> /// <param name="fse"></param> public void NavigateTo(FileSystemElement fse) { BrowserService?.CancelLoading(); CheckChangeFSEBrowserImplementation(fse); Path = fse.Path; history.RemoveRange(HistoryPosition + 1, history.Count - (HistoryPosition + 1)); history.Insert(HistoryPosition + 1, fse); HistoryPosition++; LoadFolder(fse); }
/// <summary> /// Loads the folder's contents /// </summary> private void LoadFolder(FileSystemElement fse) { try { BrowserService.CancelLoading(); var options = GetThumbnailFetchOptions(); BrowserService.LoadFolder(fse, options); if (Path != fse.Path) { return; } CurrentFolder = fse; } catch (Exception) { //await Windows.System.Launcher.LaunchUriAsync(new Uri(“ms-settings:privacy-broadfilesystemaccess”)); //Show error that path was not found } }