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