127 references to NavigationCommands
PresentationCore (12)
System\Windows\Input\Command\CommandDevice.cs (7)
123
appCommand =
NavigationCommands
.BrowseBack;
126
appCommand =
NavigationCommands
.BrowseForward;
129
appCommand =
NavigationCommands
.Refresh;
132
appCommand =
NavigationCommands
.BrowseStop;
135
appCommand =
NavigationCommands
.Search;
138
appCommand =
NavigationCommands
.Favorites;
141
appCommand =
NavigationCommands
.BrowseHome;
System\Windows\Input\Command\NavigationCommands.cs (1)
332
typeof(
NavigationCommands
), (byte)idCommand);
System\Windows\Input\Command\RoutedCommand.cs (2)
248
else if(OwnerType == typeof(
NavigationCommands
))
250
return
NavigationCommands
.LoadDefaultGestureFromResource(_commandId);
System\Windows\Input\Command\RoutedUICommand.cs (2)
92
else if(OwnerType == typeof(
NavigationCommands
))
94
return
NavigationCommands
.GetUIText(CommandId);
PresentationFramework (104)
MS\Internal\Documents\DocumentGridContextMenu.cs (4)
156
NavigationCommands
.PreviousPage,
163
NavigationCommands
.NextPage,
170
NavigationCommands
.FirstPage,
177
NavigationCommands
.LastPage,
System\Windows\Controls\DocumentViewer.cs (23)
1562
NavigationCommands
.Zoom,
1571
NavigationCommands
.IncreaseZoom,
1587
NavigationCommands
.DecreaseZoom,
1601
NavigationCommands
.PreviousPage,
1608
NavigationCommands
.NextPage,
1615
NavigationCommands
.FirstPage,
1622
NavigationCommands
.LastPage,
1635
new InputBinding(
NavigationCommands
.Zoom,
1697
args.Command ==
NavigationCommands
.Zoom)
1735
else if (args.Command ==
NavigationCommands
.IncreaseZoom)
1741
else if (args.Command ==
NavigationCommands
.DecreaseZoom)
1747
else if (args.Command ==
NavigationCommands
.PreviousPage
1748
|| args.Command ==
NavigationCommands
.FirstPage)
1754
else if (args.Command ==
NavigationCommands
.NextPage
1755
|| args.Command ==
NavigationCommands
.LastPage)
1761
else if (args.Command ==
NavigationCommands
.GoToPage)
1848
else if (args.Command ==
NavigationCommands
.Zoom)
1852
else if (args.Command ==
NavigationCommands
.DecreaseZoom)
1856
else if (args.Command ==
NavigationCommands
.IncreaseZoom)
1860
else if (args.Command ==
NavigationCommands
.PreviousPage)
1864
else if (args.Command ==
NavigationCommands
.NextPage)
1868
else if (args.Command ==
NavigationCommands
.FirstPage)
1872
else if (args.Command ==
NavigationCommands
.LastPage)
System\Windows\Controls\FlowDocumentReader.cs (12)
1335
CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentReader),
NavigationCommands
.PreviousPage,
1339
CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentReader),
NavigationCommands
.NextPage,
1343
CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentReader),
NavigationCommands
.FirstPage,
1347
CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentReader),
NavigationCommands
.LastPage,
1351
CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentReader),
NavigationCommands
.IncreaseZoom,
1355
CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentReader),
NavigationCommands
.DecreaseZoom,
1444
else if (args.Command ==
NavigationCommands
.IncreaseZoom)
1448
else if (args.Command ==
NavigationCommands
.DecreaseZoom)
1452
else if (args.Command ==
NavigationCommands
.PreviousPage)
1456
else if (args.Command ==
NavigationCommands
.NextPage)
1460
else if (args.Command ==
NavigationCommands
.FirstPage)
1464
else if (args.Command ==
NavigationCommands
.LastPage)
System\Windows\Controls\FlowDocumentScrollViewer.cs (12)
1329
CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentScrollViewer),
NavigationCommands
.PreviousPage,
1333
CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentScrollViewer),
NavigationCommands
.NextPage,
1337
CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentScrollViewer),
NavigationCommands
.FirstPage,
1341
CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentScrollViewer),
NavigationCommands
.LastPage,
1345
CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentScrollViewer),
NavigationCommands
.IncreaseZoom,
1349
CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentScrollViewer),
NavigationCommands
.DecreaseZoom,
1437
else if (args.Command ==
NavigationCommands
.IncreaseZoom)
1441
else if (args.Command ==
NavigationCommands
.DecreaseZoom)
1461
else if (args.Command ==
NavigationCommands
.NextPage)
1465
else if (args.Command ==
NavigationCommands
.PreviousPage)
1469
else if (args.Command ==
NavigationCommands
.FirstPage)
1473
else if (args.Command ==
NavigationCommands
.LastPage)
System\Windows\Controls\Frame.cs (5)
1334
AddCommandBinding(new CommandBinding(
NavigationCommands
.BrowseBack, OnGoBack, OnQueryGoBack));
1335
AddCommandBinding(new CommandBinding(
NavigationCommands
.BrowseForward, OnGoForward, OnQueryGoForward));
1336
AddCommandBinding(new CommandBinding(
NavigationCommands
.NavigateJournal, OnNavigateJournal));
1337
AddCommandBinding(new CommandBinding(
NavigationCommands
.Refresh, OnRefresh, OnQueryRefresh));
1338
AddCommandBinding(new CommandBinding(
NavigationCommands
.BrowseStop, OnBrowseStop));
System\Windows\Controls\Primitives\DocumentViewerBase.cs (10)
1430
CommandHelpers.RegisterCommandHandler(typeof(DocumentViewerBase),
NavigationCommands
.PreviousPage,
1434
CommandHelpers.RegisterCommandHandler(typeof(DocumentViewerBase),
NavigationCommands
.NextPage,
1438
CommandHelpers.RegisterCommandHandler(typeof(DocumentViewerBase),
NavigationCommands
.FirstPage,
1442
CommandHelpers.RegisterCommandHandler(typeof(DocumentViewerBase),
NavigationCommands
.LastPage,
1446
CommandHelpers.RegisterCommandHandler(typeof(DocumentViewerBase),
NavigationCommands
.GoToPage,
1505
if (args.Command ==
NavigationCommands
.PreviousPage)
1509
else if (args.Command ==
NavigationCommands
.NextPage)
1513
else if (args.Command ==
NavigationCommands
.FirstPage)
1517
else if (args.Command ==
NavigationCommands
.LastPage)
1521
else if (args.Command ==
NavigationCommands
.GoToPage)
System\Windows\Controls\SinglePageViewer.cs (14)
1263
CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentPageViewer),
NavigationCommands
.IncreaseZoom,
1267
CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentPageViewer),
NavigationCommands
.DecreaseZoom,
1271
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(
NavigationCommands
.PreviousPage, new KeyGesture(Key.Left)));
1272
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(
NavigationCommands
.PreviousPage, new KeyGesture(Key.Up)));
1273
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(
NavigationCommands
.PreviousPage, new KeyGesture(Key.PageUp)));
1274
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(
NavigationCommands
.NextPage, new KeyGesture(Key.Right)));
1275
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(
NavigationCommands
.NextPage, new KeyGesture(Key.Down)));
1276
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(
NavigationCommands
.NextPage, new KeyGesture(Key.PageDown)));
1277
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(
NavigationCommands
.FirstPage, new KeyGesture(Key.Home)));
1278
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(
NavigationCommands
.FirstPage, new KeyGesture(Key.Home, ModifierKeys.Control)));
1279
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(
NavigationCommands
.LastPage, new KeyGesture(Key.End)));
1280
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(
NavigationCommands
.LastPage, new KeyGesture(Key.End, ModifierKeys.Control)));
1321
if (args.Command ==
NavigationCommands
.IncreaseZoom)
1325
else if (args.Command ==
NavigationCommands
.DecreaseZoom)
System\Windows\Input\Command\CommandConverter.cs (19)
198
commandType == typeof(
NavigationCommands
) ||
245
if (ownerType == typeof(
NavigationCommands
) || ((null == knownCommand) && searchAll))
250
knownCommand =
NavigationCommands
.BrowseBack;
253
knownCommand =
NavigationCommands
.BrowseForward;
256
knownCommand =
NavigationCommands
.BrowseHome;
259
knownCommand =
NavigationCommands
.BrowseStop;
262
knownCommand =
NavigationCommands
.Refresh;
265
knownCommand =
NavigationCommands
.Favorites;
268
knownCommand =
NavigationCommands
.Search;
271
knownCommand =
NavigationCommands
.IncreaseZoom;
274
knownCommand =
NavigationCommands
.DecreaseZoom;
277
knownCommand =
NavigationCommands
.Zoom;
280
knownCommand =
NavigationCommands
.NextPage;
283
knownCommand =
NavigationCommands
.PreviousPage;
286
knownCommand =
NavigationCommands
.FirstPage;
289
knownCommand =
NavigationCommands
.LastPage;
292
knownCommand =
NavigationCommands
.GoToPage;
295
knownCommand =
NavigationCommands
.NavigateJournal;
741
VerifyCommandDoesntExist( typeof(
NavigationCommands
), localName );
System\Windows\Navigation\NavigationWindow.cs (5)
160
NavigationCommands
.BrowseBack,
167
NavigationCommands
.BrowseForward,
173
new CommandBinding(
NavigationCommands
.NavigateJournal, new ExecutedRoutedEventHandler(OnNavigateJournal)));
178
NavigationCommands
.Refresh,
185
NavigationCommands
.BrowseStop,
PresentationUI (11)
InstallationError.xaml.cs (1)
20
new CommandBinding(
NavigationCommands
.Refresh,
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (7)
1421
if (e.Command.Equals(
NavigationCommands
.FirstPage))
1426
else if (e.Command.Equals(
NavigationCommands
.LastPage))
1447
if (e.Command.Equals(
NavigationCommands
.FirstPage))
1451
else if (e.Command.Equals(
NavigationCommands
.LastPage))
1932
NavigationCommands
.GoToPage.Execute(pageNumber, this);
2089
BindCommand(
NavigationCommands
.FirstPage, executeHandler, queryEnabledHandler);
2090
BindCommand(
NavigationCommands
.LastPage, executeHandler, queryEnabledHandler);
TenFeetInstallationError.xaml.cs (1)
27
new CommandBinding(
NavigationCommands
.Refresh,
TenFeetInstallationProgress.xaml.cs (2)
28
new CommandBinding(
NavigationCommands
.Refresh,
33
new CommandBinding(
NavigationCommands
.BrowseStop,