We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ef4acd commit 35e9edfCopy full SHA for 35e9edf
1 file changed
src/WinUIEx/WindowExtensions.Dialogs.cs
@@ -43,5 +43,17 @@ public static FileSavePicker CreateSaveFilePicker(this Window window)
43
WinRT.Interop.InitializeWithWindow.Initialize(savePicker, window.GetWindowHandle());
44
return savePicker;
45
}
46
+
47
+ /// <summary>
48
+ /// Creates a new instance of a FolderPicker with the provided window as a parent.
49
+ /// </summary>
50
+ /// <param name="window">Parent window</param>
51
+ /// <returns>FolderPicker</returns>
52
+ public static FolderPicker CreateFolderPicker(this Window window)
53
+ {
54
+ FolderPicker folderPicker = new FolderPicker();
55
+ WinRT.Interop.InitializeWithWindow.Initialize(folderPicker, window.GetWindowHandle());
56
+ return folderPicker;
57
+ }
58
59
0 commit comments