private void button_folder_Click(object sender, RoutedEventArgs e) { string path = CommonUtil.BrowseFolder(((HwndSource)PresentationSource.FromVisual(this)).Handle, "フォルダを選択してください"); if (path != null) { textBox_recFolder.Text = path; } }