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

CommandBinding Habilita el control de comandos de un comando específico para este elemento y declara la vinculación entre un comando, sus eventos y los controladores adjuntos 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 forma habitual de rellenar la CommandBindings colección es 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 una de ellas debe tener Command un atributo establecido en un comando conocido y los atributos establecidos para CanExecute las Executed implementaciones del controlador y.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: