title: Hide extensions in Vista/Windows 7 WPF FileDialog.Filter
body: <p>I am using the WPF OpenFileDialog and SaveFileDialog in my .NET 4 WPF application. I use the Filter property to allow the user to set different file filters. In .NET 4, this uses the native file dialogs introduced with Windows Vista (if possible).</p>
  
  <p>However, these dialogs show the extensions which make up the file filters. Since some of these use quite a bit of extensions, this is quite ugly.</p>
  
  <p>For example, I have a filter <code>Image files|*.bmp;*.dib;*.jpg;*.jpeg;*.jpe;*.jfif;*.gif;*.tif;*.tiff;*.png;*.ico|All files|*.*</code>, which is displayed as <code>Image files (*.bmp;*.dib;*.jpg;*.jpeg;*.jpe;*.jfif;*.gif;*.tif;*.tiff;*.png;*.ico)</code> in the dialog. Everything in the parenthesis is automatically added, i.e. according to the Filter string, it should display <code>Image files</code>. But somewhere the stuff in the parenthesis is added. I tried looking at the code with Reflector to see if it is done somewhere, but quickly gave up since it is quite convoluted.</p>
  
  <p>Starting Paint, for example, I can see that it is possible to use these file dialogs without the stuff in the parenthesis, i.e. it shows <code>Image files</code>.</p>
  
  <p>Does anyone know a workaround for this "feature"?</p>