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