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

Definizione

Ottiene un insieme di oggetti CommandBinding associati all'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

Valore della proprietà

Commenti

Un CommandBinding oggetto consente la gestione dei comandi di un comando specifico per questo elemento e dichiara il collegamento tra un comando, i relativi eventi e i gestori collegati da questo 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.

Un altro modo comune per popolare CommandBindings la raccolta consiste nell' CommandManager usare i metodi a livello di codice.Another typical way to populate the CommandBindings collection is to use CommandManager methods programmatically.

Utilizzo della sintassi XAML per elementi proprietàXAML Property Element Usage

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

Valori XAMLXAML Values

oneOrMoreCommandBindingsoneOrMoreCommandBindings
Uno o più CommandBinding elementi.One or more CommandBinding elements. Ognuno di questi deve avere un Command attributo impostato su un comando noto e gli attributi impostati per le CanExecute implementazioni del gestore e Executed .Each of these should have a Command attribute set to a known command, and attributes set for the CanExecute and Executed handler implementations. Per altre informazioni, vedere CommandBinding.For more information see CommandBinding.

Si applica a

Vedi anche