Search code examples
wpfwinapiopenfiledialogsavefiledialog.net-4.5.2

Can't find Win32 assembly for OpenfileDialog in WPF Framework 4.5.2


I try to code an Open/Save File Dialog in my WPF project on .NET4.5.2. I found solutions based on Win32.OpenFileDialog.

I use Win8.1(x64) and i can't find any Win32 entry in the assemblies of my Visual Studio 2015 Community.

Is there a place i could download an archive ? How could i do to manage my Open/Save Dialog an other way ?


Solution

  • You need to add a reference in your project to the PresentationFramework.dll

    Then you can simply use:

    private Microsoft.Win32.SaveFileDialog saveDialog = new SaveFileDialog();