private void btnSearch_Click(object sender, RoutedEventArgs e) { if (FolderBrowser.IsSearching) { FolderBrowser.StopBrowsing(); } else { FolderBrowser.BrowseAsync(); } }