dotnet/winforms

Update FolderNameEditor to use modern folder dialog

オープン

#4,665 opened on 2021/03/09

 (4 件のコメント) (1 件のリアクション) (0 人の担当者)C# (922 件のフォーク)batch import
area-DesignerSupporthelp wanted

Repository metrics

Stars
 (4,100 個のスター)
PR merge metrics
 (PR metrics pending)

説明

Is your feature request related to a problem? Please describe.

As noted here FolderNameEditor is using interop for folder selection, thus still opening the legacy folder dialog. FolderBrowserDialog has been updated to use the more modern Vista folder dialog. It would make sense to call FolderBrowserDialog from FolderNameEditor to get the same experience in the designer.

Also the InitialDirectory properties on FileDialog and FolderBrowserDialog should be annotated with FolderNameEditor to get the proper designer experience.

Describe the solution you'd like and alternatives you've considered

While the native interop could be updated to use the Vista dialog it probably makes more sense to just use the existing FolderBrowserDialog?

Will this feature affect UI controls?

  • their design time experience will be affected, but the designer should not require any changes
  • runtime experience will be affected if a property grid is used at runtime
  • accessibility/localization are unaffected

コントリビューターガイド