title: Using a CommonOpenFileDialog to select a folder but still show files within the folder in Windows 10
body: <p>I'm trying to use <code>CommonOpenFileDialog</code> to allow users to select a folder, but also view the files that within the folder in the dialog.  Currently my code allows the user to only select a folder, but files within it are hidden, which causes users to think they have selected a wrong (empty) folder.</p>
  <pre><code>using (var dlg = new CommonOpenFileDialog()
  {
      Title = &quot;Select folder to import from&quot;,
      AllowNonFileSystemItems = true,
      IsFolderPicker = true,
      EnsurePathExists = true,
      Multiselect = false,
      ShowPlacesList = true
  })
  {
      if (dlg.ShowDialog() == CommonFileDialogResult.Ok)
      {
          //Do things with the selected folder and the files within it...
      }
  }
  </code></pre>
  <p>How can I achieve my goal for applications targeting Windows 10?</p>
  <p><sub><strong>NOTE:</strong> There is a very similar question titled &quot;<a href="https://stackoverflow.com/questions/8142109/how-can-i-make-commonopenfiledialog-select-folders-only-but-still-show-files">How can I make CommonOpenFileDialog select folders only, but still show files?</a>&quot;.  This question already has good answers, <strong>however, none of the solutions work in Windows 10</strong>.  Because the existing question is outdated (asked over 9 years ago) and doesn't apply for Windows 10, this question is specifically asking for a solution that works on a Windows 10 device.</sub></p>