Uredi

Deli z drugimi prek


RoutedUICommand Constructors

Definition

Initializes a new instance of the RoutedUICommand class.

Overloads

RoutedUICommand()

Initializes a new instance of the RoutedUICommand class.

RoutedUICommand(String, String, Type)

Initializes a new instance of the RoutedUICommand class, using the specified descriptive text, declared name, and owner type.

RoutedUICommand(String, String, Type, InputGestureCollection)

Initializes a new instance of the RoutedUICommand class, using the specified descriptive text, declared name, owner type, and input gestures.

RoutedUICommand()

Initializes a new instance of the RoutedUICommand class.

public:
 RoutedUICommand();
public RoutedUICommand ();
Public Sub New ()

See also

Applies to

RoutedUICommand(String, String, Type)

Initializes a new instance of the RoutedUICommand class, using the specified descriptive text, declared name, and owner type.

public:
 RoutedUICommand(System::String ^ text, System::String ^ name, Type ^ ownerType);
public RoutedUICommand (string text, string name, Type ownerType);
new System.Windows.Input.RoutedUICommand : string * string * Type -> System.Windows.Input.RoutedUICommand
Public Sub New (text As String, name As String, ownerType As Type)

Parameters

text
String

Descriptive text for the command.

name
String

The declared name of the command for serialization.

ownerType
Type

The type that is registering the command.

Exceptions

name is null.

ownerType is null.

See also

Applies to

RoutedUICommand(String, String, Type, InputGestureCollection)

Initializes a new instance of the RoutedUICommand class, using the specified descriptive text, declared name, owner type, and input gestures.

public:
 RoutedUICommand(System::String ^ text, System::String ^ name, Type ^ ownerType, System::Windows::Input::InputGestureCollection ^ inputGestures);
public RoutedUICommand (string text, string name, Type ownerType, System.Windows.Input.InputGestureCollection inputGestures);
new System.Windows.Input.RoutedUICommand : string * string * Type * System.Windows.Input.InputGestureCollection -> System.Windows.Input.RoutedUICommand
Public Sub New (text As String, name As String, ownerType As Type, inputGestures As InputGestureCollection)

Parameters

text
String

Descriptive text for the command.

name
String

The declared name of the command for serialization.

ownerType
Type

The type that is registering the command.

inputGestures
InputGestureCollection

A collection of gestures to associate with the command.

Exceptions

name is null.

ownerType is null.

See also

Applies to