1 type derived from RoutedCommand
PresentationCore (1)
System\Windows\Input\Command\RoutedUICommand.cs (1)
18public class RoutedUICommand : RoutedCommand
47 instantiations of RoutedCommand
Microsoft.VisualStudio.LanguageServices (7)
GenerateType\GenerateTypeDialog.xaml.cs (5)
50new RoutedCommand( 57new RoutedCommand( 64new RoutedCommand( 71new RoutedCommand( 78new RoutedCommand(
PickMembers\PickMembersDialog.xaml.cs (2)
49new RoutedCommand( 56new RoutedCommand(
PresentationFramework (39)
System\Windows\Controls\DataGrid.cs (3)
2051public static readonly RoutedCommand BeginEditCommand = new RoutedCommand("BeginEdit", typeof(DataGrid)); 2057public static readonly RoutedCommand CommitEditCommand = new RoutedCommand("CommitEdit", typeof(DataGrid)); 2064public static readonly RoutedCommand CancelEditCommand = new RoutedCommand("CancelEdit", typeof(DataGrid));
System\Windows\Controls\InkCanvas.cs (1)
2039internal static readonly RoutedCommand DeselectCommand = new RoutedCommand("Deselect", typeof(InkCanvas));
System\Windows\Controls\Primitives\ScrollBar.cs (19)
213public static readonly RoutedCommand LineUpCommand = new RoutedCommand("LineUp", typeof(ScrollBar)); 217public static readonly RoutedCommand LineDownCommand = new RoutedCommand("LineDown", typeof(ScrollBar)); 221public static readonly RoutedCommand LineLeftCommand = new RoutedCommand("LineLeft", typeof(ScrollBar)); 225public static readonly RoutedCommand LineRightCommand = new RoutedCommand("LineRight", typeof(ScrollBar)); 229public static readonly RoutedCommand PageUpCommand = new RoutedCommand("PageUp", typeof(ScrollBar)); 233public static readonly RoutedCommand PageDownCommand = new RoutedCommand("PageDown", typeof(ScrollBar)); 237public static readonly RoutedCommand PageLeftCommand = new RoutedCommand("PageLeft", typeof(ScrollBar)); 241public static readonly RoutedCommand PageRightCommand = new RoutedCommand("PageRight", typeof(ScrollBar)); 245public static readonly RoutedCommand ScrollToEndCommand = new RoutedCommand("ScrollToEnd", typeof(ScrollBar)); 249public static readonly RoutedCommand ScrollToHomeCommand = new RoutedCommand("ScrollToHome", typeof(ScrollBar)); 253public static readonly RoutedCommand ScrollToRightEndCommand = new RoutedCommand("ScrollToRightEnd", typeof(ScrollBar)); 257public static readonly RoutedCommand ScrollToLeftEndCommand = new RoutedCommand("ScrollToLeftEnd", typeof(ScrollBar)); 261public static readonly RoutedCommand ScrollToTopCommand = new RoutedCommand("ScrollToTop", typeof(ScrollBar)); 265public static readonly RoutedCommand ScrollToBottomCommand = new RoutedCommand("ScrollToBottom", typeof(ScrollBar)); 269public static readonly RoutedCommand ScrollToHorizontalOffsetCommand = new RoutedCommand("ScrollToHorizontalOffset", typeof(ScrollBar)); 273public static readonly RoutedCommand ScrollToVerticalOffsetCommand = new RoutedCommand("ScrollToVerticalOffset", typeof(ScrollBar)); 277public static readonly RoutedCommand DeferScrollToHorizontalOffsetCommand = new RoutedCommand("DeferScrollToToHorizontalOffset", typeof(ScrollBar)); 281public static readonly RoutedCommand DeferScrollToVerticalOffsetCommand = new RoutedCommand("DeferScrollToVerticalOffset", typeof(ScrollBar)); 286public static readonly RoutedCommand ScrollHereCommand = new RoutedCommand("ScrollHere", typeof(ScrollBar));
System\Windows\Controls\Slider.cs (6)
130_increaseLargeCommand = new RoutedCommand("IncreaseLarge", typeof(Slider)); 131_decreaseLargeCommand = new RoutedCommand("DecreaseLarge", typeof(Slider)); 132_increaseSmallCommand = new RoutedCommand("IncreaseSmall", typeof(Slider)); 133_decreaseSmallCommand = new RoutedCommand("DecreaseSmall", typeof(Slider)); 134_minimizeValueCommand = new RoutedCommand("MinimizeValue", typeof(Slider)); 135_maximizeValueCommand = new RoutedCommand("MaximizeValue", typeof(Slider));
System\Windows\Controls\StickyNote.cs (2)
507public static readonly RoutedCommand DeleteNoteCommand = new RoutedCommand("DeleteNote", typeof(StickyNoteControl)); 512public static readonly RoutedCommand InkCommand = new RoutedCommand("Ink", typeof(StickyNoteControl));
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8568bamlType.DefaultConstructor = delegate() { return new System.Windows.Input.RoutedCommand(); };
System\Windows\Markup\KnownTypes.cs (1)
1512case KnownElements.RoutedCommand: o = new System.Windows.Input.RoutedCommand(); break;
System\Windows\SystemCommands.cs (5)
22CloseWindowCommand = new RoutedCommand("CloseWindow", typeof(SystemCommands)); 23MaximizeWindowCommand = new RoutedCommand("MaximizeWindow", typeof(SystemCommands)); 24MinimizeWindowCommand = new RoutedCommand("MinimizeWindow", typeof(SystemCommands)); 25RestoreWindowCommand = new RoutedCommand("RestoreWindow", typeof(SystemCommands)); 26ShowSystemMenuCommand = new RoutedCommand("ShowSystemMenu", typeof(SystemCommands));
System\Windows\Window.cs (1)
3352internal static readonly RoutedCommand DialogCancelCommand = new RoutedCommand("DialogCancel", typeof(Window));
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
75FilterCommand = new RoutedCommand("Filter", ownerType);
117 references to RoutedCommand
PresentationCore (11)
System\Windows\Input\Command\CommandBindingCollection.cs (1)
354if (commandBinding.Command is not RoutedCommand routedCommand) continue;
System\Windows\Input\Command\CommandDevice.cs (3)
91RoutedCommand command = GetRoutedCommand(rawAppCommandInputReport.AppCommand); 116private RoutedCommand GetRoutedCommand( int appCommandId ) 118RoutedCommand appCommand = null;
System\Windows\Input\Command\CommandManager.cs (7)
399RoutedCommand routedCommand = command as RoutedCommand; 430private static bool ExecuteCommand(RoutedCommand routedCommand, object parameter, IInputElement target, InputEventArgs inputEventArgs) 646RoutedCommand command = e.Command as RoutedCommand; 662RoutedCommand command = e.Command as RoutedCommand;
PresentationFramework (101)
MS\Internal\AppModel\OleCmdHelper.cs (4)
272public CommandWithArgument(RoutedCommand command) : this(command, null) 275public CommandWithArgument(RoutedCommand command, object argument) 326public RoutedCommand Command 336private RoutedCommand _command;
MS\Internal\Commands\CommandHelpers.cs (19)
16internal static void RegisterCommandHandler(Type controlType, RoutedCommand command, ExecutedRoutedEventHandler executedRoutedEventHandler) 21internal static void RegisterCommandHandler(Type controlType, RoutedCommand command, ExecutedRoutedEventHandler executedRoutedEventHandler, 27internal static void RegisterCommandHandler(Type controlType, RoutedCommand command, ExecutedRoutedEventHandler executedRoutedEventHandler, 33internal static void RegisterCommandHandler(Type controlType, RoutedCommand command, ExecutedRoutedEventHandler executedRoutedEventHandler, 39internal static void RegisterCommandHandler(Type controlType, RoutedCommand command, ExecutedRoutedEventHandler executedRoutedEventHandler, 45internal static void RegisterCommandHandler(Type controlType, RoutedCommand command, ExecutedRoutedEventHandler executedRoutedEventHandler, 51internal static void RegisterCommandHandler(Type controlType, RoutedCommand command, ExecutedRoutedEventHandler executedRoutedEventHandler, 57internal static void RegisterCommandHandler(Type controlType, RoutedCommand command, ExecutedRoutedEventHandler executedRoutedEventHandler, 63internal static void RegisterCommandHandler(Type controlType, RoutedCommand command, ExecutedRoutedEventHandler executedRoutedEventHandler, 71internal static void RegisterCommandHandler(Type controlType, RoutedCommand command, Key key, ModifierKeys modifierKeys, 77internal static void RegisterCommandHandler(Type controlType, RoutedCommand command, ExecutedRoutedEventHandler executedRoutedEventHandler, 84internal static void RegisterCommandHandler(Type controlType, RoutedCommand command, ExecutedRoutedEventHandler executedRoutedEventHandler, 92private static void PrivateRegisterCommandHandler(Type controlType, RoutedCommand command, ExecutedRoutedEventHandler executedRoutedEventHandler, 122RoutedCommand routed = command as RoutedCommand; 159RoutedCommand routed = command as RoutedCommand; 180RoutedCommand routed = command as RoutedCommand;
System\Windows\Automation\Peers\ButtonBaseAutomationPeer.cs (2)
40RoutedCommand command = owner.Command as RoutedCommand;
System\Windows\Controls\DataGrid.cs (4)
2051public static readonly RoutedCommand BeginEditCommand = new RoutedCommand("BeginEdit", typeof(DataGrid)); 2057public static readonly RoutedCommand CommitEditCommand = new RoutedCommand("CommitEdit", typeof(DataGrid)); 2064public static readonly RoutedCommand CancelEditCommand = new RoutedCommand("CancelEdit", typeof(DataGrid)); 3323private bool EndEdit(RoutedCommand command, DataGridCell cellContainer, DataGridEditingUnit editingUnit, bool exitEditMode)
System\Windows\Controls\InkCanvas.cs (3)
2039internal static readonly RoutedCommand DeselectCommand = new RoutedCommand("Deselect", typeof(InkCanvas)); 2760RoutedCommand command = (RoutedCommand)(args.Command);
System\Windows\Controls\MenuItem.cs (2)
1126RoutedCommand routedCommand; 1129&& (routedCommand = menuItem.Command as RoutedCommand) != null )
System\Windows\Controls\PasswordBox.cs (1)
114RoutedCommand command = ApplicationCommands.Paste;
System\Windows\Controls\Primitives\ScrollBar.cs (22)
213public static readonly RoutedCommand LineUpCommand = new RoutedCommand("LineUp", typeof(ScrollBar)); 217public static readonly RoutedCommand LineDownCommand = new RoutedCommand("LineDown", typeof(ScrollBar)); 221public static readonly RoutedCommand LineLeftCommand = new RoutedCommand("LineLeft", typeof(ScrollBar)); 225public static readonly RoutedCommand LineRightCommand = new RoutedCommand("LineRight", typeof(ScrollBar)); 229public static readonly RoutedCommand PageUpCommand = new RoutedCommand("PageUp", typeof(ScrollBar)); 233public static readonly RoutedCommand PageDownCommand = new RoutedCommand("PageDown", typeof(ScrollBar)); 237public static readonly RoutedCommand PageLeftCommand = new RoutedCommand("PageLeft", typeof(ScrollBar)); 241public static readonly RoutedCommand PageRightCommand = new RoutedCommand("PageRight", typeof(ScrollBar)); 245public static readonly RoutedCommand ScrollToEndCommand = new RoutedCommand("ScrollToEnd", typeof(ScrollBar)); 249public static readonly RoutedCommand ScrollToHomeCommand = new RoutedCommand("ScrollToHome", typeof(ScrollBar)); 253public static readonly RoutedCommand ScrollToRightEndCommand = new RoutedCommand("ScrollToRightEnd", typeof(ScrollBar)); 257public static readonly RoutedCommand ScrollToLeftEndCommand = new RoutedCommand("ScrollToLeftEnd", typeof(ScrollBar)); 261public static readonly RoutedCommand ScrollToTopCommand = new RoutedCommand("ScrollToTop", typeof(ScrollBar)); 265public static readonly RoutedCommand ScrollToBottomCommand = new RoutedCommand("ScrollToBottom", typeof(ScrollBar)); 269public static readonly RoutedCommand ScrollToHorizontalOffsetCommand = new RoutedCommand("ScrollToHorizontalOffset", typeof(ScrollBar)); 273public static readonly RoutedCommand ScrollToVerticalOffsetCommand = new RoutedCommand("ScrollToVerticalOffset", typeof(ScrollBar)); 277public static readonly RoutedCommand DeferScrollToHorizontalOffsetCommand = new RoutedCommand("DeferScrollToToHorizontalOffset", typeof(ScrollBar)); 281public static readonly RoutedCommand DeferScrollToVerticalOffsetCommand = new RoutedCommand("DeferScrollToVerticalOffset", typeof(ScrollBar)); 286public static readonly RoutedCommand ScrollHereCommand = new RoutedCommand("ScrollHere", typeof(ScrollBar)); 397RoutedCommand command = (Orientation == Orientation.Horizontal) ? DeferScrollToHorizontalOffsetCommand : DeferScrollToVerticalOffsetCommand; 414RoutedCommand command = null; 882private static MenuItem CreateMenuItem(string name, string automationId, RoutedCommand command)
System\Windows\Controls\Slider.cs (12)
78private static RoutedCommand _increaseLargeCommand = null; 79private static RoutedCommand _increaseSmallCommand = null; 80private static RoutedCommand _decreaseLargeCommand = null; 81private static RoutedCommand _decreaseSmallCommand = null; 82private static RoutedCommand _minimizeValueCommand = null; 83private static RoutedCommand _maximizeValueCommand = null; 88public static RoutedCommand IncreaseLarge 95public static RoutedCommand DecreaseLarge 102public static RoutedCommand IncreaseSmall 109public static RoutedCommand DecreaseSmall 116public static RoutedCommand MinimizeValue 123public static RoutedCommand MaximizeValue
System\Windows\Controls\StickyNote.cs (6)
507public static readonly RoutedCommand DeleteNoteCommand = new RoutedCommand("DeleteNote", typeof(StickyNoteControl)); 512public static readonly RoutedCommand InkCommand = new RoutedCommand("Ink", typeof(StickyNoteControl)); 1693RoutedCommand command = (RoutedCommand)(args.Command); 1729RoutedCommand command = (RoutedCommand)( args.Command );
System\Windows\Controls\TextBox.cs (3)
951typeof(RoutedCommand), 961internal RoutedCommand TemplateButtonCommand => (RoutedCommand)GetValue(TemplateButtonCommandProperty);
System\Windows\Input\Command\CommandConverter.cs (4)
71RoutedCommand command = context != null ? context.Instance as RoutedCommand : null; 178RoutedCommand command = value as RoutedCommand;
System\Windows\Input\Command\CommandValueSerializer.cs (6)
22RoutedCommand command = value as RoutedCommand; 62RoutedCommand command = value as RoutedCommand; 100RoutedCommand command = value as RoutedCommand;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
630case 536: t = () => typeof(RoutedCommand); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8566typeof(System.Windows.Input.RoutedCommand),
System\Windows\Markup\KnownTypes.cs (1)
6090case KnownElements.RoutedCommand: t = typeof(System.Windows.Input.RoutedCommand); break;
System\Windows\Shell\ThumbButtonInfo.cs (4)
261RoutedCommand routedCommand = command as RoutedCommand; 301RoutedCommand routed = Command as RoutedCommand;
System\Windows\SystemCommands.cs (5)
14public static RoutedCommand CloseWindowCommand { get; private set; } 15public static RoutedCommand MaximizeWindowCommand { get; private set; } 16public static RoutedCommand MinimizeWindowCommand { get; private set; } 17public static RoutedCommand RestoreWindowCommand { get; private set; } 18public static RoutedCommand ShowSystemMenuCommand { get; private set; }
System\Windows\Window.cs (1)
3352internal static readonly RoutedCommand DialogCancelCommand = new RoutedCommand("DialogCancel", typeof(Window));
System.Windows.Controls.Ribbon (5)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
1777public static RoutedCommand FilterCommand { get; private set; }
Microsoft\Windows\Input\CommandHelpers.cs (4)
26RoutedCommand routed = command as RoutedCommand; 88RoutedCommand routed = command as RoutedCommand;