WinUIEx
WinUIEx copied to clipboard
Update WindowExtensions.Dialogs.cs - Add CreateFolderPicker()
CreateFolderPicker() - Creates a new instance of a FolderPicker with the provided window as a parent.
Not merged? :)
Not merged? :)
This is what I have been using in the meantime:
StorageFolder? programDataFolder;
FolderPicker folderPicker = new FolderPicker();
InitializeWithWindow.Initialize(folderPicker, App.MainWindow.GetWindowHandle());
folderPicker.ViewMode = PickerViewMode.List;
folderPicker.SuggestedStartLocation = PickerLocationId.DocumentsLibrary;
folderPicker.FileTypeFilter.Add("*");
ProgramDataFolder = await folderPicker.PickSingleFolderAsync();
if (ProgramDataFolder != null)
{
//use folder chosen
App.ProgramDataFolder = ProgramDataFolder.Path;
}