First time I\'m implementing a FolderBrowserDialog in WPF and I\'m not loving it one bit...
Aside from the issues I had figuring out that Windows.Forms wasn\'t refer
Late answer here but why not just . .
private void SelectFolder()
{
var dialog = new FolderBrowserDialog();
var status = dialog.ShowDialog(); // ShowDialog() returns bool? (Nullable bool)
if (status.Equals(true))
{
SelectedFolderPath = dialog.SelectedPath;
}
}
You can see the result in debugging session. It returns false when the Cancel button is clicked.