spiegelp / MaterialDesignExtensions

Material Design Extensions is based on Material Design in XAML Toolkit to provide additional controls and features for WPF apps
https://spiegelp.github.io/MaterialDesignExtensions/
MIT License
754 stars 122 forks source link

OpenFileDialog doesn't have "Create new directory" button #42

Closed Gigas002 closed 5 years ago

Gigas002 commented 5 years ago

When trying to initialize OpenFileDialog like this:

await OpenFileDialog.ShowDialogAsync("DialogHost",
          new OpenFileDialogArguments {CreateNewDirectoryEnabled = true});

It doesn't create Create new directory button on dialog. Using this property when initializing OpenDirectoryDialog and SaveFileDialog works as expected.

spiegelp commented 5 years ago

@Gigas002 The CreateNewDirectoryEnabled does not make any sense for the OpenFileControl and OpenFileDialog controls. A new directory cannot contain any files to open yet. That's why I omit the button on these two controls. I will update the API documentation with a notice on that.