FindMyFiles

FindMyFiles.Services

ScopeFolderPicker Class

Folder picker for scope mode (ADR-0024). Unpackaged WinUI 3 requires a picker to be associated with the app window's HWND before it is shown — it throws otherwise — so this always initializes with WindowHandle.

public static class ScopeFolderPicker

Inheritance System.Object → ScopeFolderPicker

Methods

ScopeFolderPicker.PickAsync() Method

Show the folder picker and return the chosen absolute path (null when the user cancels). Windows.Storage.Pickers.FolderPicker has no multi-select, so the caller invokes this once per folder. Must be called on the UI thread.

public static System.Threading.Tasks.Task<string?> PickAsync();

Returns

System.Threading.Tasks.Task<System.String>
The selected folder path, or null on cancel.