CommandManager.RegisterClassCommandBinding(Type, CommandBinding) CommandManager.RegisterClassCommandBinding(Type, CommandBinding) CommandManager.RegisterClassCommandBinding(Type, CommandBinding) Method

Definition

Registers a CommandBinding with the specified type.

public:
 static void RegisterClassCommandBinding(Type ^ type, System::Windows::Input::CommandBinding ^ commandBinding);
public static void RegisterClassCommandBinding (Type type, System.Windows.Input.CommandBinding commandBinding);
static member RegisterClassCommandBinding : Type * System.Windows.Input.CommandBinding -> unit

Parameters

type
Type Type Type

The class with which to register commandBinding.

commandBinding
CommandBinding CommandBinding CommandBinding

The command binding to register.

Exceptions

Remarks

This method enables a CommandBinding to be associated with a class instead than an instance of a class.

Applies to