Hello.
Our project has a requirement to show an ExplorerControl where navigation is limited to a user-defined folder and its subfolders. Ideally, the navigation tree's root folder would be the specified folder (instead of the hierarchy from This PC to the target folder).
Is this functionality possible?
If there was a cancellable "OnBeforeNavigating" event to prevent navigating to parent folders, that might also be sufficient.
I've gotten close to it by handling the DirectoryRequesting event and cancelling any directories that are not the target folder, a parent folder, or child folder.
However, this still allows users to browse to parent folders and see the contents. If I try to cancel the DirectoryRequesting events for the parent folders too, the control stops working.
We looked into editing the control template, but it proved to be more in-depth than we want to go.
Thanks!