Rick Brewster made this comment on my previous post about the Inconsistent FileDialogs.
So I decided to fire up his solution:
I’ve created an empty WPF project, with a Window called ‘Main’ with the following code:
using System.Windows;
using Microsoft.Win32;
namespace OpenFileDialogNewStyle
{
///
/// Interaction logic for Main.xaml
///
public partial class Main : Window
{
///
/// Constructor
///
public Main()
{
this.InitializeComponent();
OpenFileDialog myOpenFileDialog = new OpenFileDialog();
myOpenFileDialog.ShowDialog();
}
}
}
This opens the ‘old’ style FileDialog, with the outdated icons.
To resolve this you can add a manifest in your project:
The manifest should be named NameOfYourStartUpProject.exe.manifest (as pointed out above), it should be a text file containing the following code:
Description
Change the name on the 5th line to the name of your project!
Now go to properties and point to the manifest.
Now compile, and test if you see the new type icons



