BreadcrumbBar Path Changes + Fix...
b7f75d7f
Aaron Campf
committed
6 changed files
MainWindow.xaml
/BExplorer/BetterExplorer/MainWindow.xaml
/BExplorer/BetterExplorer/MainWindow.xaml
MainWindow.xaml.cs
/BExplorer/BetterExplorer/MainWindow.xaml.cs-17+4
/BExplorer/BetterExplorer/MainWindow.xaml.cs
Add comment 5247 */
Add comment 5248
Add comment 5249 private void path_changed(object sender, RoutedPropertyChangedEventArgs<string> e) {
Add comment 5250 Plus   /*
Add comment 5250 5251 Int64 pidl;
Add comment 5251 5252 bool isValidPidl = Int64.TryParse(e.NewValue.ToShellParsingName().TrimEnd(Char.Parse(@"\")), out pidl);
Add comment 5252 5253 ShellItem item = isValidPidl ? new ShellItem((IntPtr)pidl) : new ShellItem(e.NewValue.ToShellParsingName());
Add comment 5253 5254 NavigationController(item);
Add comment 5255 Plus   */
Add comment 5254 5256 }
Add comment 5255 5257
Add comment 5256 5258 /*
Add comment 5263 5265 */
Add comment 5264 5266
Add comment 5265 5267 private void NavigationController(ShellItem Destination) {
Add comment 5266 Minus   //TODO: Shouldn't we use this.ShellListView.Navigate_Full(item, true);??
Add comment 5267 Minus  
Add comment 5268 Minus   //#region AddedForNow
Add comment 5269 Minus   //if (bcbc.Root == null) {
Add comment 5270 Minus   // this.bcbc.Root = ((ShellItem)KnownFolders.Desktop);
Add comment 5271 Minus   //}
Add comment 5272 Minus   //#endregion
Add comment 5273 Minus  
Add comment 5274 Minus   if (this.bcbc.OnNavigate == null) {
Add comment 5275 Minus   this.bcbc.OnNavigate = NavigationController;
Add comment 5268 Plus   if (Destination != this.ShellListView.CurrentFolder) {
Add comment 5269 Plus   this.ShellListView.Navigate_Full(Destination, true);
Add comment 5276 5270 }
Add comment 5277 5271
Add comment 5278 Minus   if (Destination != this.ShellListView.CurrentFolder && bcbc._IsBreadcrumbBarSelectionChnagedAllowed) {
Add comment 5279 Minus   //this.ShellListView.Navigate(Destination, true);
Add comment 5280 Minus   this.ShellListView.Navigate_Full(Destination, true);
Add comment 5281 5272 this.bcbc.Path = this.ShellListView.CurrentFolder.ParsingName;
Add comment 5282 Minus   //this.bcbc.BuildBreadcrumbsFromPath(this.ShellListView.CurrentFolder.ParsingName);
Add comment 5283 Minus   }
Add comment 5284 Minus  
Add comment 5285 Minus   //bcbc._IsBreadcrumbBarSelectionChnagedAllowed = true;
Add comment 5286 5273 }
Add comment 5287 5274
Add comment 5288 5275
BreadcrumbBar.cs
/BreadcrumbBar/BreadcrumbBar/BreadcrumbBar.cs
/BreadcrumbBar/BreadcrumbBar/BreadcrumbBar.cs
BetterExplorer1.psess
/BetterExplorer1.psess
/BetterExplorer1.psess
BetterExplorer140813.vsp
/BetterExplorer140813.vsp
/BetterExplorer140813.vsp
BExplorer.sln
/BExplorer.sln
/BExplorer.sln