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
762 stars 122 forks source link

Double clicking on a file closes OpenFileDialog and SaveFileDialog selecting the file #57

Closed glen-yb closed 5 years ago

glen-yb commented 5 years ago

Like the Windows file dialogs, OpenFileDialog and SaveFileDialog should return when a file is double clicked. The dialogs should also select a file when you hit Enter and cancel when you hit Escape.

spiegelp commented 5 years ago

@glen-yb I will consider your feedback for a future release.

spiegelp commented 5 years ago

@glen-yb Please have a look at the latest preview release. It contains improved keyboard navigation for the file sytem controls.

glen-yb commented 5 years ago

@spiegelp Thank you! Your solution is very elegant.

pialin commented 4 years ago

I found that OpenFileDialog is still working in a "single click" way. Wasn't it supposed to be solved? @spiegelp please help me. My code was listed below. Thanks!

OpenFileDialogArguments dialogArgs = new OpenFileDialogArguments();
OpenFileDialogResult result = await ShowDialogAsync("RootDialog", dialogArgs);

My MaterialDesignTheme nuget package is "3.1.1-ci1261" and MaterialDesignExtensions is "3.1.0-a03".