130 references to NavigationCommands
PresentationCore (12)
Core\CSharp\System\Windows\Input\Command\CommandDevice.cs (7)
151appCommand = NavigationCommands.BrowseBack; 154appCommand = NavigationCommands.BrowseForward; 157appCommand = NavigationCommands.Refresh; 160appCommand = NavigationCommands.BrowseStop; 163appCommand = NavigationCommands.Search; 166appCommand = NavigationCommands.Favorites; 169appCommand = NavigationCommands.BrowseHome;
Core\CSharp\System\Windows\Input\Command\NavigationCommands.cs (1)
353typeof(NavigationCommands), (byte)idCommand,
Core\CSharp\System\Windows\Input\Command\RoutedCommand.cs (2)
286else if(OwnerType == typeof(NavigationCommands)) 288return NavigationCommands.LoadDefaultGestureFromResource(_commandId);
Core\CSharp\System\Windows\Input\Command\RoutedUICommand.cs (2)
102else if(OwnerType == typeof(NavigationCommands)) 104return NavigationCommands.GetUIText(CommandId);
PresentationFramework (118)
src\Framework\MS\Internal\AppModel\OleCmdHelper.cs (13)
232_oleCmdMappingTable.Value.Add((uint)UnsafeNativeMethods.OLECMDID.OLECMDID_REFRESH, new CommandWithArgument(NavigationCommands.Refresh)); 233_oleCmdMappingTable.Value.Add((uint)UnsafeNativeMethods.OLECMDID.OLECMDID_STOP, new CommandWithArgument(NavigationCommands.BrowseStop)); 262_applicationCommandsMappingTable.Value.Add((uint)AppCommands.View_Refresh, new CommandWithArgument(NavigationCommands.Refresh)); 263_applicationCommandsMappingTable.Value.Add((uint)AppCommands.View_Stop, new CommandWithArgument(NavigationCommands.BrowseStop)); 272_applicationCommandsMappingTable.Value.Add((uint)AppCommands.View_Zoom_In, new CommandWithArgument(NavigationCommands.IncreaseZoom)); 273_applicationCommandsMappingTable.Value.Add((uint)AppCommands.View_Zoom_Out, new CommandWithArgument(NavigationCommands.DecreaseZoom)); 274_applicationCommandsMappingTable.Value.Add((uint)AppCommands.View_Zoom_400, new CommandWithArgument(NavigationCommands.Zoom, 400)); 275_applicationCommandsMappingTable.Value.Add((uint)AppCommands.View_Zoom_250, new CommandWithArgument(NavigationCommands.Zoom, 250)); 276_applicationCommandsMappingTable.Value.Add((uint)AppCommands.View_Zoom_150, new CommandWithArgument(NavigationCommands.Zoom, 150)); 277_applicationCommandsMappingTable.Value.Add((uint)AppCommands.View_Zoom_100, new CommandWithArgument(NavigationCommands.Zoom, 100)); 278_applicationCommandsMappingTable.Value.Add((uint)AppCommands.View_Zoom_75, new CommandWithArgument(NavigationCommands.Zoom, 75)); 279_applicationCommandsMappingTable.Value.Add((uint)AppCommands.View_Zoom_50, new CommandWithArgument(NavigationCommands.Zoom, 50)); 280_applicationCommandsMappingTable.Value.Add((uint)AppCommands.View_Zoom_25, new CommandWithArgument(NavigationCommands.Zoom, 25));
src\Framework\MS\Internal\AppModel\XappLauncher.cs (2)
116MainWindow.CommandBindings.Add(new CommandBinding(NavigationCommands.BrowseStop, new ExecutedRoutedEventHandler(OnCommandStop))); 117MainWindow.CommandBindings.Add(new CommandBinding(NavigationCommands.Refresh, new ExecutedRoutedEventHandler(OnCommandRefresh)));
src\Framework\MS\Internal\Documents\DocumentGridContextMenu.cs (4)
195NavigationCommands.PreviousPage, 202NavigationCommands.NextPage, 209NavigationCommands.FirstPage, 216NavigationCommands.LastPage,
src\Framework\System\Windows\Controls\DocumentViewer.cs (23)
1657NavigationCommands.Zoom, 1666NavigationCommands.IncreaseZoom, 1682NavigationCommands.DecreaseZoom, 1696NavigationCommands.PreviousPage, 1703NavigationCommands.NextPage, 1710NavigationCommands.FirstPage, 1717NavigationCommands.LastPage, 1730new InputBinding(NavigationCommands.Zoom, 1794args.Command == NavigationCommands.Zoom) 1832else if (args.Command == NavigationCommands.IncreaseZoom) 1838else if (args.Command == NavigationCommands.DecreaseZoom) 1844else if (args.Command == NavigationCommands.PreviousPage 1845|| args.Command == NavigationCommands.FirstPage) 1851else if (args.Command == NavigationCommands.NextPage 1852|| args.Command == NavigationCommands.LastPage) 1858else if (args.Command == NavigationCommands.GoToPage) 1946else if (args.Command == NavigationCommands.Zoom) 1950else if (args.Command == NavigationCommands.DecreaseZoom) 1954else if (args.Command == NavigationCommands.IncreaseZoom) 1958else if (args.Command == NavigationCommands.PreviousPage) 1962else if (args.Command == NavigationCommands.NextPage) 1966else if (args.Command == NavigationCommands.FirstPage) 1970else if (args.Command == NavigationCommands.LastPage)
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (12)
1358CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentReader), NavigationCommands.PreviousPage, 1362CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentReader), NavigationCommands.NextPage, 1366CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentReader), NavigationCommands.FirstPage, 1370CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentReader), NavigationCommands.LastPage, 1374CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentReader), NavigationCommands.IncreaseZoom, 1378CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentReader), NavigationCommands.DecreaseZoom, 1467else if (args.Command == NavigationCommands.IncreaseZoom) 1471else if (args.Command == NavigationCommands.DecreaseZoom) 1475else if (args.Command == NavigationCommands.PreviousPage) 1479else if (args.Command == NavigationCommands.NextPage) 1483else if (args.Command == NavigationCommands.FirstPage) 1487else if (args.Command == NavigationCommands.LastPage)
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (12)
1362CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentScrollViewer), NavigationCommands.PreviousPage, 1366CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentScrollViewer), NavigationCommands.NextPage, 1370CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentScrollViewer), NavigationCommands.FirstPage, 1374CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentScrollViewer), NavigationCommands.LastPage, 1378CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentScrollViewer), NavigationCommands.IncreaseZoom, 1382CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentScrollViewer), NavigationCommands.DecreaseZoom, 1470else if (args.Command == NavigationCommands.IncreaseZoom) 1474else if (args.Command == NavigationCommands.DecreaseZoom) 1506else if (args.Command == NavigationCommands.NextPage) 1513else if (args.Command == NavigationCommands.PreviousPage) 1520else if (args.Command == NavigationCommands.FirstPage) 1527else if (args.Command == NavigationCommands.LastPage)
src\Framework\System\Windows\Controls\Frame.cs (5)
1382AddCommandBinding(new CommandBinding(NavigationCommands.BrowseBack, OnGoBack, OnQueryGoBack)); 1383AddCommandBinding(new CommandBinding(NavigationCommands.BrowseForward, OnGoForward, OnQueryGoForward)); 1384AddCommandBinding(new CommandBinding(NavigationCommands.NavigateJournal, OnNavigateJournal)); 1385AddCommandBinding(new CommandBinding(NavigationCommands.Refresh, OnRefresh, OnQueryRefresh)); 1386AddCommandBinding(new CommandBinding(NavigationCommands.BrowseStop, OnBrowseStop));
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (10)
1476CommandHelpers.RegisterCommandHandler(typeof(DocumentViewerBase), NavigationCommands.PreviousPage, 1480CommandHelpers.RegisterCommandHandler(typeof(DocumentViewerBase), NavigationCommands.NextPage, 1484CommandHelpers.RegisterCommandHandler(typeof(DocumentViewerBase), NavigationCommands.FirstPage, 1488CommandHelpers.RegisterCommandHandler(typeof(DocumentViewerBase), NavigationCommands.LastPage, 1492CommandHelpers.RegisterCommandHandler(typeof(DocumentViewerBase), NavigationCommands.GoToPage, 1551if (args.Command == NavigationCommands.PreviousPage) 1555else if (args.Command == NavigationCommands.NextPage) 1559else if (args.Command == NavigationCommands.FirstPage) 1563else if (args.Command == NavigationCommands.LastPage) 1567else if (args.Command == NavigationCommands.GoToPage)
src\Framework\System\Windows\Controls\SinglePageViewer.cs (14)
1272CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentPageViewer), NavigationCommands.IncreaseZoom, 1276CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentPageViewer), NavigationCommands.DecreaseZoom, 1280CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.PreviousPage, new KeyGesture(Key.Left))); 1281CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.PreviousPage, new KeyGesture(Key.Up))); 1282CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.PreviousPage, new KeyGesture(Key.PageUp))); 1283CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.NextPage, new KeyGesture(Key.Right))); 1284CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.NextPage, new KeyGesture(Key.Down))); 1285CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.NextPage, new KeyGesture(Key.PageDown))); 1286CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.FirstPage, new KeyGesture(Key.Home))); 1287CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.FirstPage, new KeyGesture(Key.Home, ModifierKeys.Control))); 1288CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.LastPage, new KeyGesture(Key.End))); 1289CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.LastPage, new KeyGesture(Key.End, ModifierKeys.Control))); 1330if (args.Command == NavigationCommands.IncreaseZoom) 1334else if (args.Command == NavigationCommands.DecreaseZoom)
src\Framework\System\Windows\Input\Command\CommandConverter.cs (18)
214commandType == typeof(NavigationCommands) || 261if (ownerType == typeof(NavigationCommands) || ((null == knownCommand) && searchAll)) 266knownCommand = NavigationCommands.BrowseBack; 269knownCommand = NavigationCommands.BrowseForward; 272knownCommand = NavigationCommands.BrowseHome; 275knownCommand = NavigationCommands.BrowseStop; 278knownCommand = NavigationCommands.Refresh; 281knownCommand = NavigationCommands.Favorites; 284knownCommand = NavigationCommands.Search; 287knownCommand = NavigationCommands.IncreaseZoom; 290knownCommand = NavigationCommands.DecreaseZoom; 293knownCommand = NavigationCommands.Zoom; 296knownCommand = NavigationCommands.NextPage; 299knownCommand = NavigationCommands.PreviousPage; 302knownCommand = NavigationCommands.FirstPage; 305knownCommand = NavigationCommands.LastPage; 308knownCommand = NavigationCommands.GoToPage; 311knownCommand = NavigationCommands.NavigateJournal;
src\Framework\System\Windows\Navigation\NavigationWindow.cs (5)
190NavigationCommands.BrowseBack, 197NavigationCommands.BrowseForward, 203new CommandBinding(NavigationCommands.NavigateJournal, new ExecutedRoutedEventHandler(OnNavigateJournal))); 208NavigationCommands.Refresh, 215NavigationCommands.BrowseStop,