CommandManager.RegisterClassCommandBinding(Type, CommandBinding) Method
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.
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
Public Shared Sub RegisterClassCommandBinding (type As Type, commandBinding As CommandBinding)
Parameters
- type
- Type
The class with which to register commandBinding
.
- commandBinding
- CommandBinding
The command binding to register.
Exceptions
type
or commandBinding
is null
.
Remarks
This method enables a CommandBinding to be associated with a class instead than an instance of a class.
Applies to
Surađujte s nama na GitHubu
Izvor za ovaj sadržaj možete pronaći na GitHubu, gdje možete stvarati i pregledavati probleme i zahtjeve za povlačenjem. Dodatne informacije potražite u našem vodiču za suradnike.