&tag(WPF/コモンダイアログ);
Microsoft.Win32.SaveFileDialog dlg = new Microsoft.Win32.SaveFileDialog();
bool? result = dlg.ShowDialog();
OpenFileDialog dlg = new OpenFileDialog();
dlg.Filter = "excel files (*.xlsx)|*.xlsx";
if (dlg.ShowDialog() == true)
{
Debug.WriteLine("ファイルが選択されました。" + dlg.FileName);
}