127 references to NavigationCommands
PresentationCore (12)
System\Windows\Input\Command\CommandDevice.cs (7)
124
appCommand =
NavigationCommands
.BrowseBack;
127
appCommand =
NavigationCommands
.BrowseForward;
130
appCommand =
NavigationCommands
.Refresh;
133
appCommand =
NavigationCommands
.BrowseStop;
136
appCommand =
NavigationCommands
.Search;
139
appCommand =
NavigationCommands
.Favorites;
142
appCommand =
NavigationCommands
.BrowseHome;
System\Windows\Input\Command\NavigationCommands.cs (1)
333
typeof(
NavigationCommands
), (byte)idCommand);
System\Windows\Input\Command\RoutedCommand.cs (2)
249
else if(OwnerType == typeof(
NavigationCommands
))
251
return
NavigationCommands
.LoadDefaultGestureFromResource(_commandId);
System\Windows\Input\Command\RoutedUICommand.cs (2)
93
else if(OwnerType == typeof(
NavigationCommands
))
95
return
NavigationCommands
.GetUIText(CommandId);
PresentationFramework (104)
MS\Internal\Documents\DocumentGridContextMenu.cs (4)
157
NavigationCommands
.PreviousPage,
164
NavigationCommands
.NextPage,
171
NavigationCommands
.FirstPage,
178
NavigationCommands
.LastPage,
System\Windows\Controls\DocumentViewer.cs (23)
1566
NavigationCommands
.Zoom,
1575
NavigationCommands
.IncreaseZoom,
1591
NavigationCommands
.DecreaseZoom,
1605
NavigationCommands
.PreviousPage,
1612
NavigationCommands
.NextPage,
1619
NavigationCommands
.FirstPage,
1626
NavigationCommands
.LastPage,
1639
new InputBinding(
NavigationCommands
.Zoom,
1701
args.Command ==
NavigationCommands
.Zoom)
1739
else if (args.Command ==
NavigationCommands
.IncreaseZoom)
1745
else if (args.Command ==
NavigationCommands
.DecreaseZoom)
1751
else if (args.Command ==
NavigationCommands
.PreviousPage
1752
|| args.Command ==
NavigationCommands
.FirstPage)
1758
else if (args.Command ==
NavigationCommands
.NextPage
1759
|| args.Command ==
NavigationCommands
.LastPage)
1765
else if (args.Command ==
NavigationCommands
.GoToPage)
1852
else if (args.Command ==
NavigationCommands
.Zoom)
1856
else if (args.Command ==
NavigationCommands
.DecreaseZoom)
1860
else if (args.Command ==
NavigationCommands
.IncreaseZoom)
1864
else if (args.Command ==
NavigationCommands
.PreviousPage)
1868
else if (args.Command ==
NavigationCommands
.NextPage)
1872
else if (args.Command ==
NavigationCommands
.FirstPage)
1876
else if (args.Command ==
NavigationCommands
.LastPage)
System\Windows\Controls\FlowDocumentReader.cs (12)
1336
CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentReader),
NavigationCommands
.PreviousPage,
1340
CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentReader),
NavigationCommands
.NextPage,
1344
CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentReader),
NavigationCommands
.FirstPage,
1348
CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentReader),
NavigationCommands
.LastPage,
1352
CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentReader),
NavigationCommands
.IncreaseZoom,
1356
CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentReader),
NavigationCommands
.DecreaseZoom,
1445
else if (args.Command ==
NavigationCommands
.IncreaseZoom)
1449
else if (args.Command ==
NavigationCommands
.DecreaseZoom)
1453
else if (args.Command ==
NavigationCommands
.PreviousPage)
1457
else if (args.Command ==
NavigationCommands
.NextPage)
1461
else if (args.Command ==
NavigationCommands
.FirstPage)
1465
else if (args.Command ==
NavigationCommands
.LastPage)
System\Windows\Controls\FlowDocumentScrollViewer.cs (12)
1342
CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentScrollViewer),
NavigationCommands
.PreviousPage,
1346
CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentScrollViewer),
NavigationCommands
.NextPage,
1350
CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentScrollViewer),
NavigationCommands
.FirstPage,
1354
CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentScrollViewer),
NavigationCommands
.LastPage,
1358
CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentScrollViewer),
NavigationCommands
.IncreaseZoom,
1362
CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentScrollViewer),
NavigationCommands
.DecreaseZoom,
1450
else if (args.Command ==
NavigationCommands
.IncreaseZoom)
1454
else if (args.Command ==
NavigationCommands
.DecreaseZoom)
1474
else if (args.Command ==
NavigationCommands
.NextPage)
1478
else if (args.Command ==
NavigationCommands
.PreviousPage)
1482
else if (args.Command ==
NavigationCommands
.FirstPage)
1486
else if (args.Command ==
NavigationCommands
.LastPage)
System\Windows\Controls\Frame.cs (5)
1335
AddCommandBinding(new CommandBinding(
NavigationCommands
.BrowseBack, OnGoBack, OnQueryGoBack));
1336
AddCommandBinding(new CommandBinding(
NavigationCommands
.BrowseForward, OnGoForward, OnQueryGoForward));
1337
AddCommandBinding(new CommandBinding(
NavigationCommands
.NavigateJournal, OnNavigateJournal));
1338
AddCommandBinding(new CommandBinding(
NavigationCommands
.Refresh, OnRefresh, OnQueryRefresh));
1339
AddCommandBinding(new CommandBinding(
NavigationCommands
.BrowseStop, OnBrowseStop));
System\Windows\Controls\Primitives\DocumentViewerBase.cs (10)
1431
CommandHelpers.RegisterCommandHandler(typeof(DocumentViewerBase),
NavigationCommands
.PreviousPage,
1435
CommandHelpers.RegisterCommandHandler(typeof(DocumentViewerBase),
NavigationCommands
.NextPage,
1439
CommandHelpers.RegisterCommandHandler(typeof(DocumentViewerBase),
NavigationCommands
.FirstPage,
1443
CommandHelpers.RegisterCommandHandler(typeof(DocumentViewerBase),
NavigationCommands
.LastPage,
1447
CommandHelpers.RegisterCommandHandler(typeof(DocumentViewerBase),
NavigationCommands
.GoToPage,
1506
if (args.Command ==
NavigationCommands
.PreviousPage)
1510
else if (args.Command ==
NavigationCommands
.NextPage)
1514
else if (args.Command ==
NavigationCommands
.FirstPage)
1518
else if (args.Command ==
NavigationCommands
.LastPage)
1522
else if (args.Command ==
NavigationCommands
.GoToPage)
System\Windows\Controls\SinglePageViewer.cs (14)
1264
CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentPageViewer),
NavigationCommands
.IncreaseZoom,
1268
CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentPageViewer),
NavigationCommands
.DecreaseZoom,
1272
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(
NavigationCommands
.PreviousPage, new KeyGesture(Key.Left)));
1273
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(
NavigationCommands
.PreviousPage, new KeyGesture(Key.Up)));
1274
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(
NavigationCommands
.PreviousPage, new KeyGesture(Key.PageUp)));
1275
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(
NavigationCommands
.NextPage, new KeyGesture(Key.Right)));
1276
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(
NavigationCommands
.NextPage, new KeyGesture(Key.Down)));
1277
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(
NavigationCommands
.NextPage, new KeyGesture(Key.PageDown)));
1278
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(
NavigationCommands
.FirstPage, new KeyGesture(Key.Home)));
1279
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(
NavigationCommands
.FirstPage, new KeyGesture(Key.Home, ModifierKeys.Control)));
1280
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(
NavigationCommands
.LastPage, new KeyGesture(Key.End)));
1281
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(
NavigationCommands
.LastPage, new KeyGesture(Key.End, ModifierKeys.Control)));
1322
if (args.Command ==
NavigationCommands
.IncreaseZoom)
1326
else if (args.Command ==
NavigationCommands
.DecreaseZoom)
System\Windows\Input\Command\CommandConverter.cs (19)
199
commandType == typeof(
NavigationCommands
) ||
246
if (ownerType == typeof(
NavigationCommands
) || ((null == knownCommand) && searchAll))
251
knownCommand =
NavigationCommands
.BrowseBack;
254
knownCommand =
NavigationCommands
.BrowseForward;
257
knownCommand =
NavigationCommands
.BrowseHome;
260
knownCommand =
NavigationCommands
.BrowseStop;
263
knownCommand =
NavigationCommands
.Refresh;
266
knownCommand =
NavigationCommands
.Favorites;
269
knownCommand =
NavigationCommands
.Search;
272
knownCommand =
NavigationCommands
.IncreaseZoom;
275
knownCommand =
NavigationCommands
.DecreaseZoom;
278
knownCommand =
NavigationCommands
.Zoom;
281
knownCommand =
NavigationCommands
.NextPage;
284
knownCommand =
NavigationCommands
.PreviousPage;
287
knownCommand =
NavigationCommands
.FirstPage;
290
knownCommand =
NavigationCommands
.LastPage;
293
knownCommand =
NavigationCommands
.GoToPage;
296
knownCommand =
NavigationCommands
.NavigateJournal;
742
VerifyCommandDoesntExist( typeof(
NavigationCommands
), localName );
System\Windows\Navigation\NavigationWindow.cs (5)
161
NavigationCommands
.BrowseBack,
168
NavigationCommands
.BrowseForward,
174
new CommandBinding(
NavigationCommands
.NavigateJournal, new ExecutedRoutedEventHandler(OnNavigateJournal)));
179
NavigationCommands
.Refresh,
186
NavigationCommands
.BrowseStop,
PresentationUI (11)
InstallationError.xaml.cs (1)
21
new CommandBinding(
NavigationCommands
.Refresh,
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (7)
1422
if (e.Command.Equals(
NavigationCommands
.FirstPage))
1427
else if (e.Command.Equals(
NavigationCommands
.LastPage))
1448
if (e.Command.Equals(
NavigationCommands
.FirstPage))
1452
else if (e.Command.Equals(
NavigationCommands
.LastPage))
1933
NavigationCommands
.GoToPage.Execute(pageNumber, this);
2090
BindCommand(
NavigationCommands
.FirstPage, executeHandler, queryEnabledHandler);
2091
BindCommand(
NavigationCommands
.LastPage, executeHandler, queryEnabledHandler);
TenFeetInstallationError.xaml.cs (1)
28
new CommandBinding(
NavigationCommands
.Refresh,
TenFeetInstallationProgress.xaml.cs (2)
29
new CommandBinding(
NavigationCommands
.Refresh,
34
new CommandBinding(
NavigationCommands
.BrowseStop,