private void BrowseButton_Click(object sender, System.Windows.RoutedEventArgs e) { var dialog = new Ookii.Dialogs.Wpf.VistaFolderBrowserDialog { ShowNewFolderButton = true, UseDescriptionForTitle = true, Description = @"Choose Location", SelectedPath = Path.Combine(UserFolderAPI.GetPath(KnownFolder.Downloads), "Others") }; dialog.ShowDialog(); Destination = dialog.SelectedPath; UpdateFolderBox(); }
public RuleCreatorPage() { InitializeComponent(); foreach (RuleType type in Enum.GetValues(typeof(RuleType))) { var str = GetDescription(type); _ruleTypeDictionary.Add(str, type); TypeCombo.Items.Add(str); } TypeCombo.SelectedIndex = 0; Destination = UserFolderAPI.GetPath(KnownFolder.Downloads) + "\\Others"; UpdateFolderBox(); }