140 references to NavigationCommands
PresentationCore (12)
System\Windows\Input\Command\CommandDevice.cs (7)
129appCommand = NavigationCommands.BrowseBack; 132appCommand = NavigationCommands.BrowseForward; 135appCommand = NavigationCommands.Refresh; 138appCommand = NavigationCommands.BrowseStop; 141appCommand = NavigationCommands.Search; 144appCommand = NavigationCommands.Favorites; 147appCommand = NavigationCommands.BrowseHome;
System\Windows\Input\Command\NavigationCommands.cs (1)
347typeof(NavigationCommands), (byte)idCommand);
System\Windows\Input\Command\RoutedCommand.cs (2)
260else if(OwnerType == typeof(NavigationCommands)) 262return NavigationCommands.LoadDefaultGestureFromResource(_commandId);
System\Windows\Input\Command\RoutedUICommand.cs (2)
97else if(OwnerType == typeof(NavigationCommands)) 99return NavigationCommands.GetUIText(CommandId);
PresentationFramework (117)
MS\Internal\AppModel\OleCmdHelper.cs (13)
198_oleCmdMappingTable.Add((uint)UnsafeNativeMethods.OLECMDID.OLECMDID_REFRESH, new CommandWithArgument(NavigationCommands.Refresh)); 199_oleCmdMappingTable.Add((uint)UnsafeNativeMethods.OLECMDID.OLECMDID_STOP, new CommandWithArgument(NavigationCommands.BrowseStop)); 221_applicationCommandsMappingTable.Add((uint)AppCommands.View_Refresh, new CommandWithArgument(NavigationCommands.Refresh)); 222_applicationCommandsMappingTable.Add((uint)AppCommands.View_Stop, new CommandWithArgument(NavigationCommands.BrowseStop)); 231_applicationCommandsMappingTable.Add((uint)AppCommands.View_Zoom_In, new CommandWithArgument(NavigationCommands.IncreaseZoom)); 232_applicationCommandsMappingTable.Add((uint)AppCommands.View_Zoom_Out, new CommandWithArgument(NavigationCommands.DecreaseZoom)); 233_applicationCommandsMappingTable.Add((uint)AppCommands.View_Zoom_400, new CommandWithArgument(NavigationCommands.Zoom, 400)); 234_applicationCommandsMappingTable.Add((uint)AppCommands.View_Zoom_250, new CommandWithArgument(NavigationCommands.Zoom, 250)); 235_applicationCommandsMappingTable.Add((uint)AppCommands.View_Zoom_150, new CommandWithArgument(NavigationCommands.Zoom, 150)); 236_applicationCommandsMappingTable.Add((uint)AppCommands.View_Zoom_100, new CommandWithArgument(NavigationCommands.Zoom, 100)); 237_applicationCommandsMappingTable.Add((uint)AppCommands.View_Zoom_75, new CommandWithArgument(NavigationCommands.Zoom, 75)); 238_applicationCommandsMappingTable.Add((uint)AppCommands.View_Zoom_50, new CommandWithArgument(NavigationCommands.Zoom, 50)); 239_applicationCommandsMappingTable.Add((uint)AppCommands.View_Zoom_25, new CommandWithArgument(NavigationCommands.Zoom, 25));
MS\Internal\Documents\DocumentGridContextMenu.cs (4)
163NavigationCommands.PreviousPage, 170NavigationCommands.NextPage, 177NavigationCommands.FirstPage, 184NavigationCommands.LastPage,
System\Windows\Controls\DocumentViewer.cs (23)
1632NavigationCommands.Zoom, 1641NavigationCommands.IncreaseZoom, 1657NavigationCommands.DecreaseZoom, 1671NavigationCommands.PreviousPage, 1678NavigationCommands.NextPage, 1685NavigationCommands.FirstPage, 1692NavigationCommands.LastPage, 1705new InputBinding(NavigationCommands.Zoom, 1761args.Command == NavigationCommands.Zoom) 1799else if (args.Command == NavigationCommands.IncreaseZoom) 1805else if (args.Command == NavigationCommands.DecreaseZoom) 1811else if (args.Command == NavigationCommands.PreviousPage 1812|| args.Command == NavigationCommands.FirstPage) 1818else if (args.Command == NavigationCommands.NextPage 1819|| args.Command == NavigationCommands.LastPage) 1825else if (args.Command == NavigationCommands.GoToPage) 1912else if (args.Command == NavigationCommands.Zoom) 1916else if (args.Command == NavigationCommands.DecreaseZoom) 1920else if (args.Command == NavigationCommands.IncreaseZoom) 1924else if (args.Command == NavigationCommands.PreviousPage) 1928else if (args.Command == NavigationCommands.NextPage) 1932else if (args.Command == NavigationCommands.FirstPage) 1936else if (args.Command == NavigationCommands.LastPage)
System\Windows\Controls\FlowDocumentReader.cs (12)
1352CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentReader), NavigationCommands.PreviousPage, 1356CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentReader), NavigationCommands.NextPage, 1360CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentReader), NavigationCommands.FirstPage, 1364CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentReader), NavigationCommands.LastPage, 1368CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentReader), NavigationCommands.IncreaseZoom, 1372CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentReader), NavigationCommands.DecreaseZoom, 1461else if (args.Command == NavigationCommands.IncreaseZoom) 1465else if (args.Command == NavigationCommands.DecreaseZoom) 1469else if (args.Command == NavigationCommands.PreviousPage) 1473else if (args.Command == NavigationCommands.NextPage) 1477else if (args.Command == NavigationCommands.FirstPage) 1481else if (args.Command == NavigationCommands.LastPage)
System\Windows\Controls\FlowDocumentScrollViewer.cs (12)
1354CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentScrollViewer), NavigationCommands.PreviousPage, 1358CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentScrollViewer), NavigationCommands.NextPage, 1362CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentScrollViewer), NavigationCommands.FirstPage, 1366CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentScrollViewer), NavigationCommands.LastPage, 1370CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentScrollViewer), NavigationCommands.IncreaseZoom, 1374CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentScrollViewer), NavigationCommands.DecreaseZoom, 1462else if (args.Command == NavigationCommands.IncreaseZoom) 1466else if (args.Command == NavigationCommands.DecreaseZoom) 1498else if (args.Command == NavigationCommands.NextPage) 1505else if (args.Command == NavigationCommands.PreviousPage) 1512else if (args.Command == NavigationCommands.FirstPage) 1519else if (args.Command == NavigationCommands.LastPage)
System\Windows\Controls\Frame.cs (5)
1362AddCommandBinding(new CommandBinding(NavigationCommands.BrowseBack, OnGoBack, OnQueryGoBack)); 1363AddCommandBinding(new CommandBinding(NavigationCommands.BrowseForward, OnGoForward, OnQueryGoForward)); 1364AddCommandBinding(new CommandBinding(NavigationCommands.NavigateJournal, OnNavigateJournal)); 1365AddCommandBinding(new CommandBinding(NavigationCommands.Refresh, OnRefresh, OnQueryRefresh)); 1366AddCommandBinding(new CommandBinding(NavigationCommands.BrowseStop, OnBrowseStop));
System\Windows\Controls\Primitives\DocumentViewerBase.cs (10)
1464CommandHelpers.RegisterCommandHandler(typeof(DocumentViewerBase), NavigationCommands.PreviousPage, 1468CommandHelpers.RegisterCommandHandler(typeof(DocumentViewerBase), NavigationCommands.NextPage, 1472CommandHelpers.RegisterCommandHandler(typeof(DocumentViewerBase), NavigationCommands.FirstPage, 1476CommandHelpers.RegisterCommandHandler(typeof(DocumentViewerBase), NavigationCommands.LastPage, 1480CommandHelpers.RegisterCommandHandler(typeof(DocumentViewerBase), NavigationCommands.GoToPage, 1539if (args.Command == NavigationCommands.PreviousPage) 1543else if (args.Command == NavigationCommands.NextPage) 1547else if (args.Command == NavigationCommands.FirstPage) 1551else if (args.Command == NavigationCommands.LastPage) 1555else if (args.Command == NavigationCommands.GoToPage)
System\Windows\Controls\SinglePageViewer.cs (14)
1265CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentPageViewer), NavigationCommands.IncreaseZoom, 1269CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentPageViewer), NavigationCommands.DecreaseZoom, 1273CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.PreviousPage, new KeyGesture(Key.Left))); 1274CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.PreviousPage, new KeyGesture(Key.Up))); 1275CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.PreviousPage, new KeyGesture(Key.PageUp))); 1276CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.NextPage, new KeyGesture(Key.Right))); 1277CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.NextPage, new KeyGesture(Key.Down))); 1278CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.NextPage, new KeyGesture(Key.PageDown))); 1279CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.FirstPage, new KeyGesture(Key.Home))); 1280CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.FirstPage, new KeyGesture(Key.Home, ModifierKeys.Control))); 1281CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.LastPage, new KeyGesture(Key.End))); 1282CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.LastPage, new KeyGesture(Key.End, ModifierKeys.Control))); 1323if (args.Command == NavigationCommands.IncreaseZoom) 1327else if (args.Command == NavigationCommands.DecreaseZoom)
System\Windows\Input\Command\CommandConverter.cs (19)
204commandType == typeof(NavigationCommands) || 251if (ownerType == typeof(NavigationCommands) || ((null == knownCommand) && searchAll)) 256knownCommand = NavigationCommands.BrowseBack; 259knownCommand = NavigationCommands.BrowseForward; 262knownCommand = NavigationCommands.BrowseHome; 265knownCommand = NavigationCommands.BrowseStop; 268knownCommand = NavigationCommands.Refresh; 271knownCommand = NavigationCommands.Favorites; 274knownCommand = NavigationCommands.Search; 277knownCommand = NavigationCommands.IncreaseZoom; 280knownCommand = NavigationCommands.DecreaseZoom; 283knownCommand = NavigationCommands.Zoom; 286knownCommand = NavigationCommands.NextPage; 289knownCommand = NavigationCommands.PreviousPage; 292knownCommand = NavigationCommands.FirstPage; 295knownCommand = NavigationCommands.LastPage; 298knownCommand = NavigationCommands.GoToPage; 301knownCommand = NavigationCommands.NavigateJournal; 747VerifyCommandDoesntExist( typeof(NavigationCommands), localName );
System\Windows\Navigation\NavigationWindow.cs (5)
177NavigationCommands.BrowseBack, 184NavigationCommands.BrowseForward, 190new CommandBinding(NavigationCommands.NavigateJournal, new ExecutedRoutedEventHandler(OnNavigateJournal))); 195NavigationCommands.Refresh, 202NavigationCommands.BrowseStop,
PresentationUI (11)
InstallationError.xaml.cs (1)
25new CommandBinding(NavigationCommands.Refresh,
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (7)
1418if (e.Command.Equals(NavigationCommands.FirstPage)) 1423else if (e.Command.Equals(NavigationCommands.LastPage)) 1444if (e.Command.Equals(NavigationCommands.FirstPage)) 1448else if (e.Command.Equals(NavigationCommands.LastPage)) 1934NavigationCommands.GoToPage.Execute(pageNumber, this); 2097BindCommand(NavigationCommands.FirstPage, executeHandler, queryEnabledHandler); 2098BindCommand(NavigationCommands.LastPage, executeHandler, queryEnabledHandler);
TenFeetInstallationError.xaml.cs (1)
32new CommandBinding(NavigationCommands.Refresh,
TenFeetInstallationProgress.xaml.cs (2)
33new CommandBinding(NavigationCommands.Refresh, 38new CommandBinding(NavigationCommands.BrowseStop,