Redigera

Dela via


RoutedCommand Constructors

Definition

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.

the length of name is zero

-or-

ownerType is null.

See also

Applies to