Example code where OpenFileDialog
saves selected directory to list:
OpenFolderDialog dialog = new OpenFolderDialog();
var result = await dialog.ShowAsync(this);
ListOfDirectories.Add(result);
But the problem is that user might want to select two, or three, or any other amount of directories. With this implementation user has to do this in loop. OpenFileDialog
does not support multiselection directly.
There is also OpenFileDialog
which has multiselect property, but as name suggests its for files, I need it only for folders.
Currently I do not have any ideas how to bypass this problem.