Tag Archives: Choose folder in WPF

Choose a folder using FolderBrowseDialog in WPF

To select folder in WPF is not a control in Toolbox. You can do it with following code. privatevoid btnFolder_Click(object sender, RoutedEventArgs e) {   var dialog = new System.Windows.Forms.FolderBrowserDialog();   System.Windows.Forms.DialogResult result = dialog.ShowDialog();     txtXML.Text = dialog.SelectedPath; … Continue reading

Posted in .Net | Tagged , , | Leave a comment