private void Button_Click(object sender, RoutedEventArgs e) { var dlg = new Avalon.Windows.Dialogs.FolderBrowserDialog(); dlg.BrowseFiles = false; if (dlg.ShowDialog() == true) { txtDatabaseLocation.Text = dlg.SelectedPath; txtDatabaseLocation.GetBindingExpression(TextBox.TextProperty).UpdateSource(); } }
private void Button_Click(object sender, RoutedEventArgs e) { Avalon.Windows.Dialogs.FolderBrowserDialog dialog = new Avalon.Windows.Dialogs.FolderBrowserDialog { ShowEditBox = ShowEditBox.IsChecked == true, BrowseShares = BrowseShares.IsChecked == true }; if (dialog.ShowDialog() == true) { folder.Text = dialog.SelectedPath; } }