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.
2 parents 96c033f + aba8217 commit cc8abbeCopy full SHA for cc8abbe
src/Ookii.Dialogs.Wpf/VistaFileDialog.cs
@@ -647,7 +647,11 @@ internal virtual void SetDialogProperties(Ookii.Dialogs.Wpf.Interop.IFileDialog
647
if( !string.IsNullOrEmpty(_initialDirectory) )
648
{
649
Ookii.Dialogs.Wpf.Interop.IShellItem item = NativeMethods.CreateItemFromParsingName(_initialDirectory);
650
- dialog.SetDefaultFolder(item);
+
651
+ // The dialog.SetDefaultFolder(item) is only set first time the applications sets the folder,
652
+ // Next time the folder will be restored to last picked object and the 'Default folder' is ignored
653
+ // Use instead dialog.SetFolder which behaviour better matches the name 'InitialFolder'
654
+ dialog.SetFolder(item);
655
}
656
657
if( !string.IsNullOrEmpty(_title) )
0 commit comments