c# wpf open file dialog code example
Example 1: c# open file dialog
OpenFileDialog dialog = new OpenFileDialog();
if (DialogResult.OK == dialog.ShowDialog())
{
string path = dialog.FileName;
}
Example 2: wpf choose file dialog
all the Source code really helpfull
recomend to check
OpenFileDialog openFileDialog = new OpenFileDialog();
if (openFileDialog.ShowDialog() == true)//if user chose a file
{
//do something
}