/// <summary> /// Browse operation. /// </summary> /// <param name="parameter"> /// The parameter. /// </param> private void Browse(object parameter) { if (this.FolderBrowserDialogService != null) { string dir = this.Folder; if (this.FolderBrowserDialogService.ShowFolderBrowserDialog(ref dir)) { this.Folder = dir; } } else { // use default win32 dialog var d = new BrowseForFolderDialog { InitialFolder = this.Folder }; if (true == d.ShowDialog(this.GetOwnerWindow())) { this.Folder = d.SelectedFolder; } } }