// As of .Net 3.5 SP1, WPF's Microsoft.Win32.OpenFileDialog class still uses the old style
VistaOpenFileDialog dialog = new VistaOpenFileDialog();
dialog.Filter = "All files (*.*)|*.*";
if( !VistaFileDialog.IsVistaFileDialogSupported )
MessageBox.Show(this, "Because you are not using Windows Vista or later, the regular open file dialog will be used. Please use Windows Vista to see the new dialog.", "Sample open file dialog");
if( (bool)dialog.ShowDialog(this) )
MessageBox.Show(this, "The selected file was: " + dialog.FileName, "Sample open file dialog");