WPFFolderBrowser.Net 2.0.0

dotnet add package WPFFolderBrowser.Net --version 2.0.0
NuGet\Install-Package WPFFolderBrowser.Net -Version 2.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WPFFolderBrowser.Net" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WPFFolderBrowser.Net --version 2.0.0
#r "nuget: WPFFolderBrowser.Net, 2.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install WPFFolderBrowser.Net as a Cake Addin
#addin nuget:?package=WPFFolderBrowser.Net&version=2.0.0

// Install WPFFolderBrowser.Net as a Cake Tool
#tool nuget:?package=WPFFolderBrowser.Net&version=2.0.0

WpfFolderBrowser

Fork from https://wpffolderbrowser.codeplex.com/

Project Description

Use the Windows Vista / Windows 7 Folder Browser Dialog from your WPF projects, without any additional dependencies.

Remarks

This project was adapted from the Vista Bridge sample on MSDN http://msdn2.microsoft.com/en-us/library/ms756482.aspx. Basically, I did only the following:

  • Get the example to run under .Net 4.0 .
  • Add the FOS_PICKFOLDER option to the initialization code of the OpenFileDialog.
  • Add members to set an initial folder and to set the initial text of the file name TextBox.
  • Remove members that did not apply to the FolderBrowser dialog.
  • Remove unused code and dependencies.
  • Rename public classes and namespaces.

As a result, the WPFFolderBrowserDialog class can now be used out of the box in WPF projects, much like the Microsoft.Win32.OpenFileDialog class, which actually lacks only a way to set the FOS_PICKFOLDER option in order to support this scenario (I still hope that some day some one will add this possibility and make this project obsolete!).

Actually, everybody could do this by themselves, but since it took me roughly a day to figure out how to do it, I thought I'd share the result with the community...

Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0-windows7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.0 492 11/20/2022

Ported to .Net 6.0