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