ContentElement.CommandBindings ContentElement.CommandBindings ContentElement.CommandBindings ContentElement.CommandBindings Property

Definición

Obtiene la colección de objetos CommandBinding asociados a este elemento.Gets a collection of CommandBinding objects that are associated with this element.

public:
 property System::Windows::Input::CommandBindingCollection ^ CommandBindings { System::Windows::Input::CommandBindingCollection ^ get(); };
public System.Windows.Input.CommandBindingCollection CommandBindings { get; }
member this.CommandBindings : System.Windows.Input.CommandBindingCollection
Public ReadOnly Property CommandBindings As CommandBindingCollection

Valor de propiedad

Comentarios

Un CommandBinding habilita el control de un comando específico para este elemento y declara la vinculación entre un comando, sus eventos y los controladores que están conectados por este elemento.A CommandBinding enables command handling of a specific command for this element and declares the linkage between a command, its events, and the handlers that are attached by this element.

Otra manera típica de rellenar la CommandBindings colección consiste en usar CommandManager métodos mediante programación.Another typical way to populate the CommandBindings collection is to use CommandManager methods programmatically.

Uso de elementos de propiedad XAMLXAML Property Element Usage

<object>  
  <object.CommandBindings>  
    oneOrMoreCommandBindings  </object.CommandBindings>  
</object>  

Valores XAMLXAML Values

oneOrMoreCommandBindingsoneOrMoreCommandBindings
Uno o más CommandBinding elementos.One or more CommandBinding elements. Cada uno de ellos debe tener un Command atributo establecido en un comando conocido, y los atributos establecidos para el CanExecute y Executed las implementaciones de controladores.Each of these should have a Command attribute set to a known command, and attributes set for the CanExecute and Executed handler implementations. Para obtener más información, vea CommandBinding.For more information see CommandBinding.

Se aplica a

Consulte también: