RoutedCommand Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the RoutedCommand class.
Overloads
RoutedCommand() |
Initializes a new instance of the RoutedCommand class. |
RoutedCommand(String, Type) |
Initializes a new instance of the RoutedCommand class with the specified name and owner type. |
RoutedCommand(String, Type, InputGestureCollection) |
Initializes a new instance of the RoutedCommand class with the specified name, owner type, and collection of gestures. |
RoutedCommand()
Initializes a new instance of the RoutedCommand class.
public:
RoutedCommand();
public RoutedCommand ();
Public Sub New ()
See also
Applies to
RoutedCommand(String, Type)
Initializes a new instance of the RoutedCommand class with the specified name and owner type.
public:
RoutedCommand(System::String ^ name, Type ^ ownerType);
public RoutedCommand (string name, Type ownerType);
new System.Windows.Input.RoutedCommand : string * Type -> System.Windows.Input.RoutedCommand
Public Sub New (name As String, ownerType As Type)
Parameters
- name
- String
Declared name for serialization.
- ownerType
- Type
The type which is registering the command.
Exceptions
name
is null
.
ownerType
is null
.
See also
Applies to
RoutedCommand(String, Type, InputGestureCollection)
Initializes a new instance of the RoutedCommand class with the specified name, owner type, and collection of gestures.
public:
RoutedCommand(System::String ^ name, Type ^ ownerType, System::Windows::Input::InputGestureCollection ^ inputGestures);
public RoutedCommand (string name, Type ownerType, System.Windows.Input.InputGestureCollection inputGestures);
new System.Windows.Input.RoutedCommand : string * Type * System.Windows.Input.InputGestureCollection -> System.Windows.Input.RoutedCommand
Public Sub New (name As String, ownerType As Type, inputGestures As InputGestureCollection)
Parameters
- name
- String
Declared name for serialization.
- ownerType
- Type
The type that is registering the command.
- inputGestures
- InputGestureCollection
Default input gestures associated with this command.
Exceptions
name
is null
.